TheoInf3-Lexer/browserparser.jay
2024-11-20 15:28:51 +01:00

21 lines
276 B
Plaintext

%{
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 {}
%%
}