TheoInf3-Lexer/Taschenrechner/browserparser.jay

21 lines
276 B
Plaintext
Raw Normal View History

2024-11-20 14:28:51 +00:00
%{
class browserparser { %}
%token WS
%token AUFKLAMMER
%token ZUKLAMMER
%token NUM
%token ADDITION
%token SUBTRA
%token MULTI
%token DIV
%%
S: AUFKLAMMER NUM OPERATION NUM ZUKLAMMER {}
OPERATION: ADDITION {}
OPERATION: SUBTRA {}
OPERATION: MULTI {}
OPERATION: DIV {}
%%
}