grammar
ANTLR Grammar to Preprocess Source Files While Preserving WhiteSpace Formatting
I am trying to preprocess my C++ source files by ANTLR.I would like to output an input file preserving all the whitespace formatting of the original source file while inserting some new source codes o[详细]
2023-04-05 03:10 分类:问答Where can I find a yacc grammar for ECMAscript/Actionscript/Javascript [closed]
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari[详细]
2023-04-05 02:29 分类:问答How to replace macros with a grammar-based parser?
I need a parser for an exotic programming language. I wrote a grammar for it and used a parser generator (PEGjs) to generate the parser. That works perfectly... except for one thing: macros (that repl[详细]
2023-04-04 17:06 分类:问答Need help constructing a grammar?
L = ((a^n)(b^n+m)(a^m)) | n, m = 0, 1, 2...) I\'m new to context free grammar and know the basics, but I\'ve been struggling with this for a while.[详细]
2023-04-04 12:54 分类:问答Generating all terminal strings in Python with grammar/rules?
I\'m trying to generate all terminal strings from a given file up to a certain length. So for instance, if you have something like[详细]
2023-04-04 08:38 分类:问答Build parser from grammar at runtime
Many (most) regular expression libraries for C++ allow for creating the expression from a string during runtime. Is anyone aware of any C++ parser g开发者_C百科enerators that allow for feeding a gramm[详细]
2023-04-04 03:31 分类:问答Translate simple formal grammar to vim syntax
I want to write bison syntax file for vim. I\'ve managed to write syntax rule for definition section. Now I\'m trying to compose syntax rule for bison rule. So, I have[详细]
2023-04-02 00:35 分类:问答Generate names for nested element
I have a grammar like this: Entity: \'entity\' name=ID \'{\' (properties+=Property)* (revision=Revision)?[详细]
2023-03-31 17:23 分类:问答Simplest way to allow users to specify output format
I have written an application which outputs data as XML.However, it would be nice to allow the user to completely customize the output format so they can more easily integrate it into their applicatio[详细]
2023-03-31 13:34 分类:问答Learning bison: What are context-free grammars and LALR(1)?
I am reading this bison introduction. I have two questions and it will be great if someone can help me understand:[详细]
2023-03-30 17:24 分类:问答