Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program : definitionList
- definitionList : definitionList functionDefinition
- definitionList : definitionList functionDeclaration
- functionDefinition : TYPE SELF_DEFINED OPEN_PAREN args CLOSE_PAREN block
- functionDeclaration : TYPE SELF_DEFINED OPEN_PAREN args CLOSE_PAREN SEMICOLON
- args : args COMMA TYPE SELF_DEFINED
- args : TYPE SELF_DEFINED
- args :
- block : OPEN_BRACE block content CLOSE_BRACE
- block : OPEN_BRACE content CLOSE_BRACE
- content : content single_line
- content : content loop
- content : content branch
- content :
- single_line : initialization SEMICOLON
- single_line : function_call SEMICOLON
- single_line : designation SEMICOLON
- single_line : SEMICOLON
- # While loop
- loop : LOOPING OPEN_PAREN boolean CLOSE_PAREN block
- loop : LOOPING OPEN_PAREN boolean CLOSE_PAREN content
- # For loop
- loop : LOOPING OPEN_PAREN designation SEMICOLON collation SEMICOLON designation CLOSE_PAREN block
- loop : LOOPING OPEN_PAREN designation SEMICOLON collation SEMICOLON designation CLOSE_PAREN content
- loop : LOOPING OPEN_PAREN initialization SEMICOLON collation SEMICOLON designation CLOSE_PAREN block
- loop : LOOPING OPEN_PAREN initialization SEMICOLON collation SEMICOLON designation CLOSE_PAREN content
- # Do While loop
- loop : LOOPING block LOOPING OPEN_PAREN boolean CLOSE_PAREN SEMICOLON
- loop : LOOPING content LOOPING OPEN_PAREN boolean CLOSE_PAREN SEMICOLON
- # if
- branch : BRANCHING OPEN_PAREN boolean CLOSE_PAREN block
- branch : BRANCHING OPEN_PAREN boolean CLOSE_PAREN content
- # else if
- branch : BRANCHING BRANCHING OPEN_PAREN boolean CLOSE_PAREN block
- branch : BRANCHING BRANCHING OPEN_PAREN boolean CLOSE_PAREN content
- # else
- branch : BRANCHING block
- branch : BRANCHING content
- # switch
- branch : BRANCHING OPEN_PAREN value CLOSE_PAREN block
- # case
- branch : BRANCHING literal COLON block
- branch : BRANCHING literal COLON content
- # default
- branch : BRANCHING COLON block
- branch : BRANCHING COLON content
- goto :
- # no semicolon to allow for use other places than in a single_line
- initialization : TYPE designation
- initialization : TYPE SELF_DEFINED
- # no semicolon to allow for use other places than in a single_line
- designation : SELF_DEFINED ASSIGNMENT value
- designation : SELF_DEFINED ASSIGNMENT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement