GOOC - Game Oriented Object C

GOOC - Game Oriented Object C

Next: Lexer Tokens, Previous: Examples, Up: Top
[Contents]

4. The Parser

4. The Parser

The GOOC parser is the first step in converting a GOOC source code file into a GOOL executable file. It consists of a Flex-Bison program, located at ecsparse.l and ecsparse.y for the lexer and parser respectively. It takes a text input and a "parser state" structure, both also stored in global variables. The parser state structure serves as the context for the parser and will keep track of all the converted (so far) source code content.

The parser state keeps track of: