Skip to content

Instantly share code, notes, and snippets.

@jmbeach
Created March 27, 2016 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmbeach/60fddb777528216a89e8 to your computer and use it in GitHub Desktop.
Save jmbeach/60fddb777528216a89e8 to your computer and use it in GitHub Desktop.
Commandline Debug
beginning parse
statementList()
statement()
variableDeclaration()
matching treat
matching id
matching eq
matching expression
expr()
matching primary
primary()
matching string
operatorPending()
current type LEXEME: { type: SEMI }
matching semi
statementList()
statement()
variableDeclaration()
matching treat
matching id
matching eq
matching expression
expr()
matching primary
primary()
matching int
operatorPending()
current type LEXEME: { type: PLUS }
operator pending
operator()
expr()
matching primary
primary()
matching int
operatorPending()
current type LEXEME: { type: SEMI }
matching semi
statementList()
statement()
variableDeclaration()
matching treat
matching id
matching eq
matching expression
expr()
matching primary
primary()
Begins with ID
operatorPending()
current type LEXEME: { type: DIVIDE }
operator pending
operator()
expr()
matching primary
primary()
matching int
operatorPending()
current type LEXEME: { type: SEMI }
matching semi
statementList()
statement()
ifStatement()
expr()
matching primary
primary()
Begins with ID
operatorPending()
current type LEXEME: { type: STRICTLESS }
logic operator pending
logicalOperator()
expr()
matching primary
primary()
matching int
operatorPending()
current type LEXEME: { type: CP }
block()
optStatementList()
statementList()
statement()
expr()
matching primary
primary()
Begins with ID
optArgList()
argList()
expr()
matching primary
primary()
matching string
operatorPending()
current type LEXEME: { type: CP }
operatorPending()
current type LEXEME: { type: SEMI }
matching semi
statementList()
statement()
variableDeclaration()
matching treat
matching id
matching eq
matching expression
expr()
matching primary
primary()
matching int
operatorPending()
current type LEXEME: { type: SEMI }
matching semi
statementList()
statement()
whileLoop()
expr()
matching primary
primary()
Begins with ID
operatorPending()
current type LEXEME: { type: STRICTLESS }
logic operator pending
logicalOperator()
expr()
matching primary
primary()
matching int
operatorPending()
current type LEXEME: { type: CP }
block()
optStatementList()
statementList()
statement()
expr()
matching primary
primary()
Begins with ID
optArgList()
argList()
expr()
matching primary
primary()
matching string
operatorPending()
current type LEXEME: { type: COMMA }
argList()
expr()
matching primary
primary()
Begins with ID
operatorPending()
current type LEXEME: { type: CP }
operatorPending()
current type LEXEME: { type: SEMI }
matching semi
statementList()
statement()
ifStatement()
expr()
matching primary
primary()
Begins with ID
operatorPending()
current type LEXEME: { type: DIVIDE }
operator pending
operator()
expr()
matching primary
primary()
matching int
operatorPending()
current type LEXEME: { type: EQUALTO }
logic operator pending
logicalOperator()
expr()
matching primary
primary()
matching int
operatorPending()
current type LEXEME: { type: CP }
block()
optStatementList()
statementList()
statement()
functionDeclaration()
optId()
optIdList()
idList()
block()
optStatementList()
statementList()
statement()
expr()
matching primary
primary()
Begins with ID
optArgList()
argList()
expr()
matching primary
primary()
Begins with ID
operatorPending()
current type LEXEME: { type: CP }
operatorPending()
current type LEXEME: { type: SEMI }
matching semi
matching close bracket
optArgList()
argList()
expr()
matching primary
primary()
Begins with ID
operatorPending()
current type LEXEME: { type: CP }
statementList()
statement()
matching close bracket
optElseStatement()
elseStatement()
ifStatement()
expr()
matching primary
primary()
Begins with ID
optArgList()
argList()
expr()
matching primary
primary()
Begins with ID
operatorPending()
current type LEXEME: { type: CP }
operatorPending()
current type LEXEME: { type: CP }
block()
optStatementList()
statementList()
statement()
expr()
matching primary
primary()
Begins with ID
optArgList()
argList()
expr()
matching primary
primary()
matching string
operatorPending()
current type LEXEME: { type: CP }
operatorPending()
current type LEXEME: { type: SEMI }
matching semi
matching close bracket
optElseStatement()
elseStatement()
block()
optStatementList()
statementList()
statement()
expr()
matching primary
primary()
Begins with ID
optArgList()
argList()
expr()
matching primary
primary()
matching string
operatorPending()
current type LEXEME: { type: CP }
operatorPending()
current type LEXEME: { type: SEMI }
matching semi
matching close bracket
matching close bracket
matching close bracket
optElseStatement()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment