You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the parsing of the textual representation of Marlowe is done solely on the Playground in JavaScript/PureScript using the nearley/grammar libraries. We need to switch for a BNF grammar parser generator so we can use the same grammar in the marlowe-cli (written in Haskell). This issue blocks issue 157.
Good candidates to investigate are:
BNFC - A Haskell EBNF converted, seems good but doesn't have a JS/PS implementation, would need to see how hard it is to make one. There is an unfinished PR from 2015 that targets Jison
Jison - A tool that creates JS parser from BNF. It doesn't seem to be actively maintained.
ANTLR - A Java based BNF parser generator. It has a nice GUI and it can output JavaScript parsers but not Haskell. According to their documentation, it requires quite a large runtime in order to run in the browser, so performance might be an issue.
This discussion was converted from issue #165 on March 12, 2024 13:44.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Currently the parsing of the textual representation of Marlowe is done solely on the Playground in JavaScript/PureScript using the nearley/grammar libraries. We need to switch for a BNF grammar parser generator so we can use the same grammar in the marlowe-cli (written in Haskell). This issue blocks issue 157.
Good candidates to investigate are:
Beta Was this translation helpful? Give feedback.
All reactions