Goldie: Calculator Dynamic

Goldie
Parsing System (v0.4)
Goldie Home (v0.4)
Getting Started

- Requirements
- Download / Install
- Never Used a Parsing Tool?
- How To Use Goldie
- Grammar Definition Language
- Message Board
- Ticket System

Goldie's Tools

- DumpCGT
- GenDocs
  - Template Format
- GRMC: Grammar Compiler
- JsonViewer
  - Parse Tree Mode
- Parse
- StaticLang
- Other Tools

GoldieLib Overview

- Static And Dynamic Styles
- Ambiguous Symbols

GoldieLib Reference

- Base
- Exception
- class Language
- class Lexer
- class Parser
- struct Symbol
- class Token
- Ver

GoldieLib Sample Apps

- Calculator Dynamic
- Calculator Static
- Parse Anything

CGT File Format
FAQ
Change Log
If You Use Trunk
Future Work
Developers

- Library Source and StaticLang

Goldie Home (v0.4) -> GoldieLib Sample Apps -> Calculator Dynamic

# Calculator Dynamic

A simple arithmetic calculator utilizing a calculator grammar. Demonstrates how to use Goldie's dynamic-style.

Calculator Dynamic Source Code

### Sample run:

>goldie-calculatorDynamic Calculator Loading language...done! Enter an arithmetic expression ('exit' to exit) calculator>2+2*20 42.00000 calculator>(1-3) / 2 -1.00000 calculator>10 10.00000 calculator>12 {;[ 456 qwf (1:4): Syntax Error: '{;[' (1:12): Syntax Error: 'qwf' 2 Error(s) calculator>2 + * 7 (1:5): Unexpected *: '*' calculator>-10 * -20 200.00000 calculator>exit