11 lines
468 B
Plaintext
11 lines
468 B
Plaintext
lenguaje orga-straight-line
|
|
|
|
prgm -> stms
|
|
stms -> stm; stm (s = s1;s2) -> compound
|
|
stms -> stms; stm -> compound
|
|
stm -> id = exp (asignacion) -> assign
|
|
exp -> numero (literal) -> number
|
|
exp -> id (idExp) -> id
|
|
exp -> exp op exp (operacion) -> opexp
|
|
op -> + (suma) -> plus
|
|
op -> - (resta) -> minus |