Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CODE -> INSTRUCTION*
- INSTRUCTIONS -> FOR
- IF
- WHILE
- INPUT
- ASSIGN
- PRINT
- pass
- FOR -> for VAR in range(VARB, VARB): TAB
- IF -> if BOOL TAB
- if BOOL TAB else: TAB
- BOOL -> EXPRESSION {B_OP EXPRESSION}* :
- TAB -> tab INSTRUCCTIONS* untab
- WHILE -> BOOL TABW
- TABW -> tab INSTRUCTIONS* pass untab
- INPUT -> VAR = ("string")
- ASSIGN -> VAR = VARB
- VAR = INPUT
- VAR = [VARB {, VARB}* ]
- PRINT -> print(PRT {,prt}* )
- VAR- > ID
- ID[VARB]
- VARB -> EXPRESSION
- LEN
- VAR[VARB]
- PRT -> string
- Input
- VARB
- LEN -> len(VAR)
- EXPRESSION -> F[(+||-)F]*
- F -> M[(x||/)F]*
- M -> L[(%||**)M]*
- L-> ID
- INT
- (EXPRESSION)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement