-
Notifications
You must be signed in to change notification settings - Fork 0
Grammar specification
Rodri Pizarro edited this page Oct 19, 2020
·
6 revisions
- PROGRAM:
-
INSTRUCTIONINSTRUCTION PROGRAM
- INSTRUCTION:
-
EOEASSIGNATION EOEEXECUTION EOEDEFINITIONFOR_STATEMENTIF_STATEMENT
EOE: ';'
- ASSIGNATION:
-
DATA_TYPE NAME '=' VALUENAME '=' VALUENAME '++'NAME '--'
- EXECUTION:
-
NAME '(' ARRAY ')'NAME '.' NAME '(' ARRAY ')'
- DEFINITION:
-
DATA_TYPE NAME EOEDATA_TYPE NAME '(' ARGUMENT_DEFINITION ')' '{' FUNCTION '}'
FOR_STATEMENT: 'for' '(' ASSIGNATION EOE BOOLEAN_OPERATION EOE ASSIGNATION ')' '{' SCOPE '}'
- IF_STATEMENT:
-
'if' '(' BOOLEAN_OPERATION ')' '{' SCOPE '}''if' '(' BOOLEAN_OPERATION ')' '{' SCOPE '}' 'else' '{' SCOPE '}'
BREAK: 'break'
- DATA_TYPE:
-
'sample''sound''number''argument''group''boolean''string'
NAME: '([a-z]|[A-Z]|_)([a-z]|[A-Z]|_|[0-9])*'
- VALUE:
-
STRINGNAME'null'EXECUTION'[' ARRAY ']''(' ARRAY ')'BOOLEAN_OPERATIONMATH_OPERATION
- ARRAY:
-
VALUEVALUE ',' ARRAY
- ARGUMENT_DEFINITION:
-
DATA_TYPE NAMEDATA_TYPE NAME ',' ARGUMENT_DEFINITION
- FUNCTION:
-
FUNCTION_INSTRUCTIONFUNCTION_INSTRUCTION FUNCTION
- FUNCTION_INSTRUCTION:
-
EOEASSIGNATION EOEEXECUTION EOEDEFINITIONFOR_STATEMENTIF_STATEMENTRETURN EOE
- BOOLEAN_OPERATION:
-
BOOLEAN_VALUENAMEEXECUTIONVALUE BOOLEAN_OPERATOR VALUE'(' VALUE BOOLEAN_OPERATOR VALUE ')'
- BOOLEAN_VALUE:
-
'true''false'NUMBER
- BOOLEAN_OPERATOR:
-
'==''<''>''<=''>=''!=''&''|'
- SCOPE:
-
SCOPE_INSTRUCTIONSCOPE_INSTRUCTION SCOPE
- SCOPE_INSTRUCTION:
-
EOEASSIGNATION EOEEXECUTION EOEDEFINITIONFOR_STATEMENTIF_STATEMENTRETURN EOEBREAK EOE
STRING: '"' * '"'
- MATH_OPERATION:
-
NUMBERNAMEEXECUTIONMATH_OPERATION MATH_OPERATOR MATH_OPERATION'(' MATH_OPERATION MATH_OPERATOR MATH_OPERATION ')'
- MATH_OPERATOR:
-
'+''-''/''*'
RETURN: 'return' VALUE
NUMBER: '([0-9])*(.([0-9])+)?'