grammar
What grammar is this?
I have to parse a document containing groups of 开发者_如何学Cvariable-value-pairs which is serialized to a string e.g. like this:[详细]
2023-03-27 21:44 分类:问答Non greedy parsing with pyparsing
I\'m trying to parse a line with pyparsing. This line is composed of a number of (key, values). What I\'d like to get is a list of (key, values). A simple example:[详细]
2023-03-27 09:26 分类:问答Ambiguous grammar (using Bison)
I\'ve got a problem with an ambiguous grammar. I\'ve got this: %token identifier %token lolcakes %start program[详细]
2023-03-27 02:08 分类:问答Parsing SPARQL queries
I need to test for a certain structural property of a couple million SPARQL queries, and for that I need the structure of the WHERE statement. I\'m currently trying to use fyzz to do this, but unfortu[详细]
2023-03-26 12:19 分类:问答Is this grammar left recursive?
I know of two types of left recursion, immediate and indirect, and I don\'t think the following grammar falls into any of them, but is that the case?[详细]
2023-03-25 13:17 分类:问答How do I distinguish a very keyword-like token from a keyword using ANTLR?
I am having trouble distinguishing a keyword from a non-keyword when a grammar allows the non-keyword to have a similar \"look\" to the keyword.[详细]
2023-03-24 22:25 分类:问答Parse sentences with different word types
I\'m looking for a grammar for analyzing two type of sentences, that means words separated by white spaces:[详细]
2023-03-23 22:52 分类:问答Nested brackets/chars '(' and ')' in grammar/ANTLRWorks warning: Decision can match input such as ... using multiple alternatives
The grammar below parses ( left part = right part # comment ), # comment is optional. Two questions: Sometimes warning (ANTLRWorks 1.4.2):[详细]
2023-03-23 22:49 分类:问答Two level grammar
I am trying to determine whether suggested changes to the EcmaScript grammar introduce ambiguities. The grammar is odd in a few ways[详细]
2023-03-22 06:23 分类:问答Extracting recursion in ANTLR
I\'ve got a grammar in ANTLR and don\'t understand how it can be recursive. Is there any way to get ANTLR to show the derivation that it used to see that my rules are recursive?[详细]
2023-03-22 00:08 分类:问答