Created
November 26, 2017 09:40
-
-
Save swilly22/e626468468f15a5876a3e261839a8e25 to your computer and use it in GitHub Desktop.
Arithmetic expression grammar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// (exp) | |
arithmetic_expression ::= LEFT_PARENTHESIS arithmetic_expression RIGHT_PARENTHESIS. | |
// exp + exp | |
arithmetic_expression ::= arithmetic_expression binary_operator arithmetic_expression. | |
// func(exp) | |
arithmetic_expression ::= STRING LEFT_PARENTHESIS arithmetic_expression_list RIGHT_PARENTHESIS. | |
// 9 | |
arithmetic_expression ::= value. | |
// friend.age | |
arithmetic_expression ::= variable. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment