BNF for Smira
NON-TERMINALS
Program
::=
(
Bs
)* <EOF>
Bs
::=
L
(
Instr
)*
Ls
::=
(
L
)*
L
::=
"L"
INT
Instr
::=
mov
|
jmp
mov
::=
Rs
"="
Rs
";"
jmp
::=
"JMP"
Ls
";"
Rs
::=
(
RP
)*
RP
::=
"("
Reg
","
Pseudo
")"
Reg
::=
"R"
INT
Pseudo
::=
"P"
INT
INT
::=
<INTEGER_LITERAL>