aboutsummaryrefslogtreecommitdiffstats
path: root/src/infix_calc_scanner3.ll
diff options
context:
space:
mode:
Diffstat (limited to 'src/infix_calc_scanner3.ll')
-rw-r--r--src/infix_calc_scanner3.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/infix_calc_scanner3.ll b/src/infix_calc_scanner3.ll
index ade9b77..7adb78c 100644
--- a/src/infix_calc_scanner3.ll
+++ b/src/infix_calc_scanner3.ll
@@ -34,6 +34,7 @@
\( 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);
@@ -58,6 +59,7 @@
"+" 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);
[a-zA-Z][a-zA-Z_0-9]* return infix_calc_yy::parser::make_IDENTIFIER(yytext, loc);