aboutsummaryrefslogtreecommitdiffstats
path: root/src/infix_calc_scanner2.ll
diff options
context:
space:
mode:
Diffstat (limited to 'src/infix_calc_scanner2.ll')
-rw-r--r--src/infix_calc_scanner2.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/infix_calc_scanner2.ll b/src/infix_calc_scanner2.ll
index b11d58a..e05c835 100644
--- a/src/infix_calc_scanner2.ll
+++ b/src/infix_calc_scanner2.ll
@@ -72,6 +72,7 @@ blank [ \t\r]
\( return infix_calc_yy::parser::make_LPAREN(loc);
\) return infix_calc_yy::parser::make_RPAREN(loc);
+"abs" return infix_calc_yy::parser::make_ABS(loc);
"sin" return infix_calc_yy::parser::make_SIN(loc);
"cos" return infix_calc_yy::parser::make_COS(loc);
"tan" return infix_calc_yy::parser::make_TAN(loc);
@@ -96,6 +97,7 @@ blank [ \t\r]
"+" return infix_calc_yy::parser::make_ADD(loc);
\* return infix_calc_yy::parser::make_MUL(loc);
\/ return infix_calc_yy::parser::make_DIV(loc);
+\% return infix_calc_yy::parser::make_MOD(loc);
{id} return infix_calc_yy::parser::make_IDENTIFIER(yytext, loc);