grammar
Recursive data structures in haskell: prolog-like terms
I have a question about recursive data structures in Haskell (language thatI\'m currently trying to learn).[详细]
2023-04-07 21:04 分类:问答A grammar that accepts the empty set by the rule S->S
This was a homework assignment problem which I know I have incorrectly answered.I gave: S -> \'\' meaning that S yields the empty string.I know that the empty set and empty string are not the sa[详细]
2023-04-07 11:32 分类:问答Need help constructing a deterministic finite automata?
What are the rules for constructing a deterministic finite automata in the form of a diagram? My professor explained by 开发者_如何学JAVAexamples, but I am not exactly sure what rules must be followed[详细]
2023-04-07 04:56 分类:问答Grammar To Parse Multiline Comments and String Literals Simultaneously
I am trying to parse C++/Java style source files and would like to isolate comments, string literals, and whitespaces as tokens.[详细]
2023-04-06 18:04 分类:问答ANTLR : expression evaluator, division and pow
I\'m trying to write a grammar to evaluate expressions. I\'ve started with the given example on the ANTLR website (it manage +,- and *).[详细]
2023-04-06 05:36 分类:问答Antlr Time-out waiting to connect to the remote parser
I am using the newest ANTLR.I get this error message while trying to debug this grammar: grammar Grammar;[详细]
2023-04-05 19:16 分类:问答ANTLR - Possible to process tokens with variable, specified lenght in a grammar?
Example String 023abc7defghij Header Characters 0, 1 = Size of following chunks Chunks First character = length of following string String[详细]
2023-04-05 18:17 分类:问答Composing data-structures/strings matching a CFG
The JSON syntax is an example of a CFG (Context free grammar). Va开发者_JS百科lid JSON strings are a sequence of tokens constrained to a CFG... or, the tokens can -equivalently- be thought of as a st[详细]
2023-04-05 15:40 分类:问答How do you convert the following ambiguous grammar to unambiguous?
I understand how the difference between the two, how ambiguity means that t开发者_如何学Gohere is at least one string with 2 distinct parse trees while there is only one in an unambiguous tree. But I[详细]
2023-04-05 13:18 分类:问答Attribute Grammar System in F#
after searching the web i could not find an attribute grammar system for F#. Well there is fsyacc with inherited attributes but i am looking for something more expressive like Ox (Ox manual). Actually[详细]
2023-04-05 09:14 分类:问答