Commit | Line | Data |
---|---|---|
d6ce1786 C |
1 | In this variant of the calc demo, the parser's semantic actions are |
2 | parameterized over a structure, called [Semantics], which defines how numbers | |
3 | should be interpreted. The parser is later instantiated with floating-point | |
4 | numbers, so the calculator actually performs floating-point evaluation -- but | |
5 | the grammar specification is independent of this detail. |