123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- %token <unit -> string>LOCATION_START
- %token LOCATION_END
- %token PLUS
- %token MINUS
- %token INCR DECR
- %token MULT_EQUAL DIV_EQUAL
- %token STAR
- %token DIV
- %token MOD
- %token AMPERSAND
- %token COMA
- %token EQUAL
- %token COLUMN
- %token L_BRACKET R_BRACKET
- %token L_PAREN R_PAREN
- %token LT GT
- %token EXCLAMATION
- %token AND OR
- %token EOL
- %token <string>IDENT
- %token <string>LITERAL
- %token <string>INTEGER
- %token TEXT_MARKER
- %token ENTER_EMBED LEAVE_EMBED
- %token COMMENT
- %token ACT
- %token IF
- %token ELSE
- %token ELIF
- %token END
- %token LET
- %token SET
- %token OBJ
- %token NO
- %token <Qsp_syntax.T.keywords>KEYWORD
- %token <Qsp_syntax.T.function_>FUNCTION
- %token <Qsp_syntax.T.function_>FUNCTION_NOARGS
- %token FOR TO STEP
- (*
- (b) if the token was declared left-associative, then the conflict is resolved
- in favor of reduction;
- (c) if the token was declared right-associative, then the conflict is resolved
- in favor of shifting.
- *)
- (* Exclamation should have the lower priority because the comments shall never
- take place of the statements
- *)
- %right NO
- (* The priority for the variable should be lower than the equality priority
- if I want to allow declare new variables *)
- %left p_variable
- %left OR
- %left AND
- %left EQUAL
- %left GT LT
- %left EXCLAMATION
- %left PLUS MINUS
- %left STAR DIV
- %left MOD
- %left FUNCTION
- %left L_PAREN
- %right R_PAREN
- %left COMA
- %left KEYWORD
- %%
|