summaryrefslogtreecommitdiff
path: root/src/common/yacctok.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/yacctok.h')
-rw-r--r--src/common/yacctok.h125
1 files changed, 125 insertions, 0 deletions
diff --git a/src/common/yacctok.h b/src/common/yacctok.h
new file mode 100644
index 0000000..a6a532d
--- /dev/null
+++ b/src/common/yacctok.h
@@ -0,0 +1,125 @@
+/*
+ * NOTE: these %token declarations are generated
+ * automatically by mktoktab from tokens.txt and
+ * op.txt.
+ */
+
+/* primitive tokens */
+
+%token IDENT
+%token INTLIT
+%token REALLIT
+%token STRINGLIT
+%token CSETLIT
+%token EOFX
+
+/* reserved words */
+
+%token BREAK /* break */
+%token BY /* by */
+%token CASE /* case */
+%token CREATE /* create */
+%token DEFAULT /* default */
+%token DO /* do */
+%token ELSE /* else */
+%token END /* end */
+%token EVERY /* every */
+%token FAIL /* fail */
+%token GLOBAL /* global */
+%token IF /* if */
+%token INITIAL /* initial */
+%token INVOCABLE /* invocable */
+%token LINK /* link */
+%token LOCAL /* local */
+%token NEXT /* next */
+%token NOT /* not */
+%token OF /* of */
+%token PROCEDURE /* procedure */
+%token RECORD /* record */
+%token REPEAT /* repeat */
+%token RETURN /* return */
+%token STATIC /* static */
+%token SUSPEND /* suspend */
+%token THEN /* then */
+%token TO /* to */
+%token UNTIL /* until */
+%token WHILE /* while */
+
+/* operators */
+
+%token BANG /* ! */
+%token MOD /* % */
+%token AUGMOD /* %:= */
+%token AND /* & */
+%token AUGAND /* &:= */
+%token STAR /* * */
+%token AUGSTAR /* *:= */
+%token INTER /* ** */
+%token AUGINTER /* **:= */
+%token PLUS /* + */
+%token AUGPLUS /* +:= */
+%token UNION /* ++ */
+%token AUGUNION /* ++:= */
+%token MINUS /* - */
+%token AUGMINUS /* -:= */
+%token DIFF /* -- */
+%token AUGDIFF /* --:= */
+%token DOT /* . */
+%token SLASH /* / */
+%token AUGSLASH /* /:= */
+%token ASSIGN /* := */
+%token SWAP /* :=: */
+%token NMLT /* < */
+%token AUGNMLT /* <:= */
+%token REVASSIGN /* <- */
+%token REVSWAP /* <-> */
+%token SLT /* << */
+%token AUGSLT /* <<:= */
+%token SLE /* <<= */
+%token AUGSLE /* <<=:= */
+%token NMLE /* <= */
+%token AUGNMLE /* <=:= */
+%token NMEQ /* = */
+%token AUGNMEQ /* =:= */
+%token SEQ /* == */
+%token AUGSEQ /* ==:= */
+%token EQUIV /* === */
+%token AUGEQUIV /* ===:= */
+%token NMGT /* > */
+%token AUGNMGT /* >:= */
+%token NMGE /* >= */
+%token AUGNMGE /* >=:= */
+%token SGT /* >> */
+%token AUGSGT /* >>:= */
+%token SGE /* >>= */
+%token AUGSGE /* >>=:= */
+%token QMARK /* ? */
+%token AUGQMARK /* ?:= */
+%token AT /* @ */
+%token AUGAT /* @:= */
+%token BACKSLASH /* \ */
+%token CARET /* ^ */
+%token AUGCARET /* ^:= */
+%token BAR /* | */
+%token CONCAT /* || */
+%token AUGCONCAT /* ||:= */
+%token LCONCAT /* ||| */
+%token AUGLCONCAT /* |||:= */
+%token TILDE /* ~ */
+%token NMNE /* ~= */
+%token AUGNMNE /* ~=:= */
+%token SNE /* ~== */
+%token AUGSNE /* ~==:= */
+%token NEQUIV /* ~=== */
+%token AUGNEQUIV /* ~===:= */
+%token LPAREN /* ( */
+%token RPAREN /* ) */
+%token PCOLON /* +: */
+%token COMMA /* , */
+%token MCOLON /* -: */
+%token COLON /* : */
+%token SEMICOL /* ; */
+%token LBRACK /* [ */
+%token RBRACK /* ] */
+%token LBRACE /* { */
+%token RBRACE /* } */