jLexUndSo/browserparser.jay
2023-12-06 13:10:50 +01:00

18 lines
241 B
Plaintext

%{
class browserparser {
%}
%token NUM
%token PLS
%token MIN
%token MUL
%token DIV
%token BROP
%token BRCL
%%
S : Exp Op Exp | BROP Exp Op Exp BRCL { }
Num : NUM | BROP MIN NUM BRCL { }
Exp : S | Num { }
Op : PLS | MIN | MUL | DIV { }
%%
}