diff options
author | Epicalert <epicalert@protonmail.com> | 2020-11-26 23:23:52 +0800 |
---|---|---|
committer | Epicalert <epicalert@protonmail.com> | 2020-11-26 23:23:52 +0800 |
commit | b53100eb6c3d22390f917be7cc943658074ca4ac (patch) | |
tree | 0e30fb7fcccb7098586dcbf7a332065b53d26ebd /src/gram.y | |
parent | bdd936a12c68f74419e3307760439335e1b18133 (diff) |
add new function @fact
Diffstat (limited to 'src/gram.y')
-rwxr-xr-x | src/gram.y | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -376,6 +376,7 @@ token K_WHITE %token K_SET8BIT %token K_ASCII %token K_CHR +%token K_FACT %right ';' %left '?' ':' @@ -969,6 +970,7 @@ term: var { $$ = new_var(O_VAR, $1); } | '@' K_CYAN { $$ = new(CYAN, ENULL, ENULL); } | '@' K_WHITE { $$ = new(WHITE, ENULL, ENULL); } */ + | '@' K_FACT '(' e ')' { $$ = new(FACT, $4, ENULL); } ; /* expressions */ |