Reputation: 1160
Like if I have some tokens listed at the beginning of my parser like so
%{
open Ast
%}
%token SEMI LPAREN RPAREN LBRACE RBRACE COMMA PLUS MINUS TIMES DIVIDE ASSIGN
%token NOT EQ NEQ LT LEQ GT GEQ AND OR
%token RETURN IF ELSE FOR WHILE INT BOOL FLOAT VOID
%token <int> LITERAL
%token <bool> BLIT
%token <string> ID FLIT
%token EOF
Is there any type of precedence associated with this? Or is this just a listing of the tokens with no particular importance to order?
Upvotes: 0
Views: 110