summaryrefslogtreecommitdiffstats
path: root/src/gram.y
diff options
context:
space:
mode:
authorEpicalert <epicalert@protonmail.com>2020-11-26 23:23:52 +0800
committerEpicalert <epicalert@protonmail.com>2020-11-26 23:23:52 +0800
commitb53100eb6c3d22390f917be7cc943658074ca4ac (patch)
tree0e30fb7fcccb7098586dcbf7a332065b53d26ebd /src/gram.y
parentbdd936a12c68f74419e3307760439335e1b18133 (diff)
add new function @fact
Diffstat (limited to 'src/gram.y')
-rwxr-xr-xsrc/gram.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gram.y b/src/gram.y
index 84a5cd3..c5f73b3 100755
--- a/src/gram.y
+++ b/src/gram.y
@@ -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 */