Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
janlely committed May 22, 2023
1 parent d19d548 commit bb2cb23
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ Just like the usage of Parser Combinator in Haskell, jparser does not generate A
```

## hello world: Simple Calculator
gramma:
```ENBF
<expr> ::= <term> | <expr> "+" <term> | <expr> "-" <term>
<term> ::= <factor> | <term> "*" <factor> | <term> "/" <factor>
<factor> ::= <number> | "(" <expr> ")"
<number> ::= <digit> | <digit> <number>
<digit> ::= "0" | "1" | "2" | ... | "9"
```
```java
public class Calculator {

Expand Down

0 comments on commit bb2cb23

Please sign in to comment.