PEG
https://en.wikipedia.org/wiki/Parsing_expression_grammar
AhaMark를 JavaScript로 재구현 해야겠다는 생각을 했고, 이에 대해서 BNF, EBNF, ABNF를 찾아보다가 PEG가 있다는 걸 이제서야 알게 되었다.
이미 알았다면 AhaWiki를 만들 때에도 사용했을 텐데.. 그때는 EBNF로 하다 중도 포기하고 RegularExpression으로 무한삽질을 했지..
I’m not really upset, but I regret not doing two things:
- Not waiting longer before handing PEG.js over to a new maintainer. Maybe I should have waited for multiple candidates to appear and choose between them, require contributions first, or something similar.
- Not keeping the “keys” to the project (access to PEG.js website, GitHub, and npm package).
Any of these may have prevented the current situation. Unfortunately, this is obvious only in retrospect.
Peggy is a simple parser generator for JavaScript that produces fast parsers with excellent error reporting. You can use it to process complex data or computer languages and build transformers, interpreters, compilers and other tools easily.
Peggy is the successor of PEG.js which had been abandoned by its maintainer.