Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Parser

Parses a string into arrays of atoms, or (inductively) other arrays.

remarks

This is fine, clever JavaScript that works but I do not endorse how unprofessional this TypeScript conversion is. Nevertheless, it works.

internal

Hierarchy

  • Parser

Index

Constructors

constructor

  • new Parser(expression: string): Parser

Properties

Protected ast

ast: any[] = []

Protected cursor

cursor: number = 0

Protected expression

expression: string

Methods

Protected expect

  • expect(c: string): void

parse

  • parse(): any

Protected parse_atom

  • parse_atom(): any

Protected parse_comment

  • parse_comment(): any

Protected parse_expression

  • parse_expression(): any

Protected parse_list

  • parse_list(): any

Protected parse_list_entries

  • parse_list_entries(): void

Protected parse_string

  • parse_string(): string

Protected whitespace

  • whitespace(): void

Generated using TypeDoc