Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Limbajul din laboratorul 1, descris in BNF
- <Litera> ::= "a" | "A" | "b" | "B" | "c" | "C" | "d" | "D" | "e" | "E" | "f" | "F" | "g" | "G" | "h" | "H" | "i" | "I" | "j" | "J" | "k" | "K" | "l" | "L" | "m" | "M" | "n" | "N" | "o" | "O" | "p" | "P" | "q" | "Q" | "r" | "R" | "s" | "S" | "t" | "T" | "u" | "U" | "v" | "V" | "w" | "W" | "x" | "X" | "y" | "Y" | "z" | "Z"
- <Cifra> ::= "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
- <Numar> ::= <Cifra> | <Numar> <Cifra>
- <Identificator> ::= <Litera> | <Identificator> (<Litera> | <Cifra>)
- <Citire> ::= "Input " <Identificator>
- <Scriere> ::= "Output" <Identificator>
- <Instructiune> ::= <Citire> | <Scriere>
- <Operator> ::= "+" | "-" | "*" | "/"
- <Operand> ::= <Numar> | <Identificator>
- <Expresie> ::= <Operand> <Operator> <Operand>
- <Atribuire> ::= <Identificator> "=" <Expresie>
- <Operand_atribuire> ::= <Operand> | "?"
- <Declaratie> ::= "Var " <Identificator> "=" <Operand_atribuire> | <Declaratie> ", " <Identificator> "=" <Operand_atribuire>
- <Sintaxa> ::= <Instructiune> | <Expresie> | <Atribuire>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement