recommending a parser for ide extension #381
-
From Discord |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Do we want a Parser Builder (Runtime) or Parser Generator? |
Beta Was this translation helpful? Give feedback.
-
inlang <0.3I chose peggy.js very much because one can write plain JavaScript. The requirements were:
Inlang >0.3Developers should be free to choose the parser they desire. The requirements for a reference parser a la "hey, use this parse to get going" are likely:
Developers need to get started quickly using inlang. If performance issues occur, the parser can be switched at some point. Since inlang is unopinionated about the parser, a switch can be conducted with a plugin update. Peggy was great because JavaScript can be used, but the learning resources are not comprehensive. Thus, someone should compare current JS parsers for ease of use. |
Beta Was this translation helpful? Give feedback.
-
Which other Inlang components need to use the parser? Linter? Editor? |
Beta Was this translation helpful? Give feedback.
-
Chevrotain does indeed look really promising.
|
Beta Was this translation helpful? Give feedback.
Further progress is tracked in #746