feat: Allow line-comments in DataStream parser

Supports c#/c++ style line comments (i.e., that begin with '//')

TODO: block comments
This commit is contained in:
John Colvin committed 2023-10-26 12:59:44 -04:00
1 parent 633163518a
commit d0d3c9de4e
2 files changed
+14

No files matched your search

@@ -26,6 +26,9 @@ Comma ,
QuoteOpen \[
QuoteClose \]
/* Comments */
LineComment \/\/[^\n\r]*(\n|\r|\r\n)
%%
{Equals} {
@@ -92,4 +95,8 @@ QuoteClose \]
return (int)DataStreamExpressionToken.IDENTIFIER;
}
{LineComment} {
return (int)DataStreamExpressionToken.LINE_COMMENT;
}
%%