fix Extend dsl to support explicit param names
This commit is contained in:
1 parent
d860573910
commit
641f00b4e0
1 file changed
+11
-2
@@ -104,8 +104,17 @@ LineComment \/\/[^\n\r]*(\n|\r|\r\n)
|
||||
}
|
||||
|
||||
{Identifier} {
|
||||
yylval.Identifier = yytext;
|
||||
return (int)DataStreamExpressionToken.IDENTIFIER;
|
||||
switch (yytext.ToLower()) {
|
||||
case "true":
|
||||
yylval.Boolean = true;
|
||||
return (int)DataStreamExpressionToken.BOOLEAN_CONSTANT;
|
||||
case "false":
|
||||
yylval.Boolean = false;
|
||||
return (int)DataStreamExpressionToken.BOOLEAN_CONSTANT;
|
||||
default:
|
||||
yylval.Identifier = yytext;
|
||||
return (int)DataStreamExpressionToken.IDENTIFIER;
|
||||
}
|
||||
}
|
||||
|
||||
{LineComment} {
|
||||
|
||||
Reference in new issue
Block a user