Skip to content

Commit

Permalink
feat: Modify README
Browse files Browse the repository at this point in the history
  • Loading branch information
liulinboyi committed Feb 26, 2021
1 parent be169ae commit 8596f91
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ Integer ::= [0-9]+
Number ::= Integer Ignored
String ::= '"' '"' Ignored | '"' StringCharacter '"' Ignored
Variable ::= "$" Name Ignored // 变量
Assignment ::= Variable Ignored '=' Ignored ( String | Number | Variable) Ignored
Assignment ::= Variable Ignored '=' Ignored ( String | Number | Variable | BinaryExpression) Ignored
Print ::= "print" "(" Ignored Variable Ignored ")" Ignored
Statement ::= Print | Assignment
SourceCode ::= Statement+
Comment ::= Ignored "#" SourceCharacter // 注释
Expression ::= Variable Ignored Operator Ignored Variable
BinaryExpression::= (Variable | Number) Ignored Operator Ignored (Variable | Number)
Operator ::= "+" | "-" | "*" | "/"
BinaryExpressions ::= (BinaryExpression Operator)+ Ignored (Variable | Number) // eg: 1: (2 + 1 +) 3 2: ((2 + 1 +) (5 + 6 -)) 3
```

Expand Down

0 comments on commit 8596f91

Please sign in to comment.