Replies: 3 comments 1 reply
-
One idea I had:
So the following should be possible:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Take a look at https://microsoft.github.io/monaco-editor/. It more than a parser though so likely doesn't fit the bill. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Here's another requirement: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have thought the last view weeks over the options to have a PGN parser that fits to all wishes, and I think peg.js (or its successor peggy) will not solve it. I did some investigation, and there are some links:
Problem to solve?
Someone has a database of pgn files, with the following requirements:
Now some other setup, other requirements:
1992.??.??
,192?.??.??
,1992.12.??
,1992.12.24
, ...)rest
junk.And these are only 2 of many possibilities, that could be requirements by someone.
Possible solutions
Here are some ideas what could be options in having that possibilities:
Similar to the other parts of the spec. You can then mix and match different variants, and for each variant build a grammar, and generate a parser for it. At the end, we could have not one, but 20 parsers built.
Beta Was this translation helpful? Give feedback.
All reactions