Use Grammar to parse from application #1136
Replies: 1 comment 1 reply
-
Hey @evangeloszotos, that can be easily done, see our cli examples or the lox example. The easiest way to get started with something is by running the Langium yeoman generator and generating a project that only contains the language and an associated CLI. The code used for the CLI is just any normal JS code that can be embedded in frontend or backend code without any extras. You can probably skip the stuff related to the |
Beta Was this translation helpful? Give feedback.
-
Is it possible to define my DSL with langium, then to build the parser and use the parser from inside of my own application?
For example I have a nodejs application and a user can input a string.
I would like to parse that string and get the AST for further processing.
Without the need of using an Editor such like VSCode.
Some way, to use the created parser programmatically to parse a string, wether on the server or on the client.
Beta Was this translation helpful? Give feedback.
All reactions