Class: Parser

Parser()

class: Parser

Constructor

new Parser()

Parses Tokens Generated by Lexer and Creates Parse Tree
Properties:
Name Type Description
AST Array Abstract Syntax Tree (Parse Tree)
symTable Array Symbol Table for Lookup
Source:

Methods

getParseTree() → {Object}

Create Syntax Tree and Symbol Table and return to Caller Method
Properties:
Name Type Description
AST Array Abstract Syntax Tree
symTable Array Symbol Table
Source:
Returns:
Parse Tree Object
Type
Object

parseTokens(instructions)

Parse Each Token of Each Instruction and Generate AST
Parameters:
Name Type Description
instructions Array List of Tokens for Each Instructions
Source: