Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CstNode

A Concrete Syntax Tree Node. This structure represents the whole parse tree of the grammar This means that information on each and every Token is present. This is unlike an AST (Abstract Syntax Tree) where some of the syntactic information is missing.

For example given an ECMAScript grammar, an AST would normally not contain information on the location of Commas, Semi colons, redundant parenthesis ect, however a CST would have that information.

Hierarchy

  • CstNode

Index

Properties

children

Optional fullName

fullName: string

Only for "in-lined" rules, the name of the top level rule containing this nested rule

name

name: string

Optional recoveredNode

recoveredNode: boolean

Generated using TypeDoc