grammar
antlr C grammar to create AST
Is there any C grammar available which generates the AST, which includes all the parser rules using \"^\" and \"开发者_JS百科!\" notations?[详细]
2023-02-25 02:34 分类:问答Creating shift-reduce / reduce-reduce free grammars
I\'m trying to implement a simple Java like language parser in sablecc, although I\'m constantly running into shift-reduce / reduce-reduce problems when implementing if, while and block statements.[详细]
2023-02-24 03:03 分类:问答Amend HTML Grammar based on attributes in TextMate
I\'ve recently started experimenting with jQuery Templates, which rely on your ability to wrap HTML within SCRIPT tags.[详细]
2023-02-23 05:34 分类:问答Irony: How to give KeyTerm precedence over variable?
Relevant chunk of Irony grammar: var VARIABLE = new RegexBasedTerminal("variable", @"(?-i)\\$?\\w+");[详细]
2023-02-23 05:11 分类:问答How to define grammar which excludes a certain set of words?
I have built a small code for static analysis of C code. The purpose of building it is to warn users about the use of methods such as strcpy() which could essentially cause buffer overflows.[详细]
2023-02-23 02:26 分类:问答Left-factoring a non-left-recursive grammar to make it LL(1)
I have removed left-recursion from a left-recursive grammar given to me. The original grammar is as follows:[详细]
2023-02-23 00:18 分类:问答Converting a grammar to LL(1)
I have this grammar: program ::= expr_list expr_list ::= {LF} [expr {LF {LF} expr}] {LF} lvalue ::= [expr DOT] NAME[详细]
2023-02-22 22:42 分类:问答Does logical AND and NOT exists in ANTLR?
Is there NOT logic in ANTLR? Im basically trying to negate a rule that i have and was wondering if its possible, also is there开发者_StackOverflow社区 AND logic? @larsmans already supplied the answer,[详细]
2023-02-21 23:48 分类:问答Ambiguous Regular Grammar?
Does such a thing exist?If so, 开发者_如何学编程could you please provide an example?Thanks.A -> a[详细]
2023-02-21 23:27 分类:问答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 分类:问答