diff options
| -rw-r--r-- | project2/sql/sql.ll | 10 | 
1 files changed, 9 insertions, 1 deletions
diff --git a/project2/sql/sql.ll b/project2/sql/sql.ll index b4aab45..924972c 100644 --- a/project2/sql/sql.ll +++ b/project2/sql/sql.ll @@ -48,7 +48,7 @@ dollarquote ("$".[a-zA-Z]."$"|"$$")  	throw std::runtime_error("Unterminated comment");  } -{comment} {  +{comment} {  	Comment(YYText());  } @@ -85,10 +85,18 @@ dollarquote ("$".[a-zA-Z]."$"|"$$")  	yy_pop_state();  } +<DOLLARQUOTE><<EOF>> { +	throw std::runtime_error("Unterminated dollar quoted string"); +} +  <QUOTE>{any} {  	statement += YYText();  } +<QUOTE><<EOF>> { +	throw std::runtime_error("Unterminated quoted string"); +} +  <STATEMENT>{term} {  	Statement(statement);  	statement.clear();  | 
