Skip to content

@yantrix/yantrix-parser v0.5.2 • Docs


Yantrix API / @yantrix/yantrix-parser / YantrixParser

Class: YantrixParser ​

YantrixParser class for backward compatibility with existing code. Wraps the Langium parser with the same interface as the old Jison parser.

Constructors ​

new YantrixParser() ​

ts
new YantrixParser(): YantrixParser

Returns ​

YantrixParser

Methods ​

parse() ​

ts
parse(input): Document

Parse Yantrix DSL input and return the AST.

Parameters ​

• input: string

The Yantrix DSL source code

Returns ​

Document

The parsed Document AST