Class Parser
Constructors
constructor
- new Parser(expression: string): Parser
Parameters
Properties
ast
expression
expression:string
i
i:number
paths
paths:Set<string>
symbol
symbol:object
Methods
Private accept
- accept(type: number): boolean
Parameters
Returns boolean
Private addPath
Parameters
Returns void
Private array
Private bracketIdentifier
Private call
Parameters
Private comparison
compile
- compile(scope: Object): any
Parameters
Returns any
Private expect
- expect(type: number): void
Parameters
Returns void
Private filter
Private identifier
Private isBracketIdentifier
- isBracketIdentifier(branch: any): boolean
Parameters
Returns boolean
Private key
Returns object
Private member
Private memberOrIdentifier
Parameters
Private multiply
Private nextSymbol
Returns void
Private object
Returns object
Private operand
Private paren
Private resolvePath
- resolvePath(branch: any, path: any): any
Parameters
Returns any
Private sum
Private unary
A simple parser for Mahalo expressions.