Interpreter: sync post code blocks to repo exactly (Javadoc wording), H6 file labels + explanatory paragraphs between every block, Java 25 note, README mapping
This commit is contained in:
17
README.md
17
README.md
@@ -479,6 +479,23 @@ javac 03-behavioral/visitor/*.java -d out/visitor
|
||||
java -cp out/visitor visitor.Main
|
||||
```
|
||||
|
||||
### Interpreter (`03-behavioral/interpreter/`)
|
||||
|
||||
| Post Section | File(s) |
|
||||
|---|---|
|
||||
| Implementation: Math Expression Evaluator — the AbstractExpression | `Expression.java` |
|
||||
| Implementation: Math Expression Evaluator — the TerminalExpression | `NumberExpression.java` |
|
||||
| Implementation: Math Expression Evaluator — AddExpression | `AddExpression.java` |
|
||||
| Implementation: Math Expression Evaluator — SubtractExpression | `SubtractExpression.java` |
|
||||
| Implementation: Math Expression Evaluator — MultiplyExpression | `MultiplyExpression.java` |
|
||||
| Implementation: Math Expression Evaluator — wiring it together | `Main.java` |
|
||||
|
||||
Run it:
|
||||
```bash
|
||||
javac 03-behavioral/interpreter/*.java -d out/interpreter
|
||||
java -cp out/interpreter interpreter.Main
|
||||
```
|
||||
|
||||
## Reference
|
||||
|
||||
- *Design Patterns: Elements of Reusable Object-Oriented Software* — Gamma, Helm, Johnson, Vlissides
|
||||
|
||||
Reference in New Issue
Block a user