compiler-compiler

Use existing languages in BNF with TinyPG?

≯℡__Kan透↙ 提交于 2019-12-21 05:52:57
问题 How can I use these BNF grammars which are in GOLD meta-syntax (RegExp + BNF) with TinyPG? I'm new to BNF so approximately what sort of conversion will I have to do to convert BNF to EBNF? I believe it should be pretty simple since TinyPG needs RegExp + EBNF in comparison to the GOLD grammars which are RegExp + BNF . Also, is there any TinyPG source code for any language available, just to see what sort of conversion I would have to do? 回答1: EBNF is not entirely backwards compatible with BNF,

Use existing languages in BNF with TinyPG?

余生颓废 提交于 2019-12-21 05:52:12
问题 How can I use these BNF grammars which are in GOLD meta-syntax (RegExp + BNF) with TinyPG? I'm new to BNF so approximately what sort of conversion will I have to do to convert BNF to EBNF? I believe it should be pretty simple since TinyPG needs RegExp + EBNF in comparison to the GOLD grammars which are RegExp + BNF . Also, is there any TinyPG source code for any language available, just to see what sort of conversion I would have to do? 回答1: EBNF is not entirely backwards compatible with BNF,

Use existing languages in BNF with TinyPG?

浪子不回头ぞ 提交于 2019-12-03 21:42:49
How can I use these BNF grammars which are in GOLD meta-syntax (RegExp + BNF) with TinyPG? I'm new to BNF so approximately what sort of conversion will I have to do to convert BNF to EBNF? I believe it should be pretty simple since TinyPG needs RegExp + EBNF in comparison to the GOLD grammars which are RegExp + BNF . Also, is there any TinyPG source code for any language available, just to see what sort of conversion I would have to do? EBNF is not entirely backwards compatible with BNF, however the differences are actually slight, you should be familiar with the document at http://www.cs.cmu