Files
spark/src/DataStreamSuite/ColumnMapExpressions/ColumnMapExpressionTokens.lex
T
John Colvin 248e37577f feat: Add DataStreamExpressions
All lex/yacc scanners/parsers are now generated with a proper dotnet
nuget pkg, YaccLexTools.

* Implements BooleanExpressionFilter with the new Parser.
2023-09-29 13:10:49 -04:00

31 lines
602 B
Plaintext

%namespace Bts.ColumnMapExpressions
%scannertype ColumnMapExpressionScanner
%visibility internal
%tokentype ColumnMapExpressionToken
%option stack, minimize, parser, verbose, persistbuffer, noembedbuffers
/* Literal Constants */
Letter [a-zA-Z]
Identifier {Letter}({Letter}*[0-9]*_*)*
Map :
Negate !
%%
{Identifier} {
yylval.Identifier = yytext;
return (int)ColumnMapExpressionToken.IDENTIFIER;
}
{Map} {
return (int)ColumnMapExpressionToken.MAP;
}
{Negate} {
return (int)ColumnMapExpressionToken.NEGATE;
}
%%