ebnf
How to parse comments with EBNF grammars
When defining the grammar for a language parser, how do you deal with things like comments (eg /* .... */) that can occur at any point in the text?[详细]
2023-04-08 23:41 分类:问答This cobol Grammar doesn't handle --9 picture
I\'m using the grammar on this site in my javacc. It works fine apart from some picture statements. For example ----,---,---.99 or --9.[详细]
2023-04-07 19:09 分类:问答Tips for writing good EBNF grammars
I\'m wri开发者_开发问答ting some Extended Backus–Naur Form grammars for document parsing. There are lots of excellent guides for the syntax of these definitions, but very little online about how to d[详细]
2023-04-06 20:03 分类:问答pyparsing with ebnf and whitespaces
I\'m using http://pyparsing.wikispaces.com/file/view/ebnf.py to convert my ebnf definition. ebnf def looks like this:[详细]
2023-04-06 03:50 分类:问答possible to automatically convert ABNF into XML?
Is it possible to automatically convert ABNF into XML? In parti开发者_Python百科cular, I need to convert speech recognition grammars written in ABNF into XML. Thanks.Are you aware of http://www.w3.org[详细]
2023-03-10 06:11 分类:问答How do I get a railroad diagram (syntax diagram) in Docbook starting from an EBNF source file?
Docbook 5 apparently supports EBNF. But it doesn\'t output a railroad diagram. I开发者_C百科s it possible to make it output a railroad diagram (AKA syntax diagram)? The DocBook schema includes XML ele[详细]
2023-03-09 23:06 分类:问答How can I define an "else" block?
Here\'s what I\'m trying: foreach_in.Rule = ToTerm(\"foreach\") + \"(\" + VARIABLE + \"in\" + list_obj + \")\";[详细]
2023-02-20 08:56 分类:问答an ANTLR Grammar for a statement or an exit statement
I wrote down the following statement in an ANTLR grammar: loopStatement : \'loop\'(statement|exit)* \'end\' \'loop\' \';\'[详细]
2023-02-18 22:18 分类:问答EBNF / parboiled: how to translate regexp into PEG?
This is a question both specific to the parboiled parser framework, and to BNF/PEG in general. Let\'s say I have the fairly simple regular expression[详细]
2023-02-14 11:43 分类:问答Why would there be two operands in a EBNF sentence?
Have this EBNF grammar < calculation>-><expr> = <expr> -> <term>(+ | -) <expr>[详细]
2023-01-18 01:12 分类:问答