diff options
author | Sven Gothel <[email protected]> | 2022-12-25 04:44:13 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-12-25 04:44:13 +0100 |
commit | 5ad5be6f962d806564e17a8ee12b74a14a0d540b (patch) | |
tree | cd641651f2391d914523878185941f9130f5b4fb /src/infix_calc_scanner2.ll | |
parent | 54605ddd3a4c42c5ebb126787e157ae83ac7f7c7 (diff) |
Diffstat (limited to 'src/infix_calc_scanner2.ll')
-rw-r--r-- | src/infix_calc_scanner2.ll | 2 |
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);
|