I need help defining some rules for a grammar in cups. The rules in question belong to the declaration block, which consists of the declaration of 0 o ...
I need help defining some rules for a grammar in cups. The rules in question belong to the declaration block, which consists of the declaration of 0 o ...
I am having problems with a grammer I am using to make a CUP Parser. The grammer is as follows: In CUP format. Or written out: My main problem r ...
My grammar needs to have custom types defined by the user, but the problem is that when I add tvariable ::= ENTERO | ID it generates the following: ...
I'm trying to implement a parser in JFLEX/CUP (JFlex 1.8.2, Cup 0.11b) for a language in which lists containing different kinds of elements can be nes ...
I downloaded jflex by doing brew install jflex everything worked the way it should. But now when I'm trying to make it work with java_cup.runtime.*. ...
I am new to JFlex and CUP. I am trying to do a simple example, but when I run the parser, it always gives the same error, it does not progress with th ...
I'm using .cup file to generate parser based on specific derivation rules. After every reduce, I want to call a function, Is it possible to define it ...
I am trying to write parsing in java cup but I get conflict I got this error; Can someone explain where I did mistake? ...
I have the following context-free grammar for a simplified version of C++. When I run it with JFLEX and CUP I get a list of errors like that: I thi ...
I'm trying to write a parser using JFlex and Cup, but I have some issues dealing with recursive pointed notation like function call with recursive pro ...
I'm working on a pascal compiler using CUP and JFLEX. One of the requirements is to recover from errors and show where the errors are. I've been usin ...
I create this code: The solution to this expression: alfa + beta * gamma +77 is + + alfa * beta gamma 77 but the program doesnt show the correct so ...
I am implementing a parser for a subset of Java using Java CUP. The grammar is like This works fine, but when I add CUP won't work, the warnin ...
My grammer needs to have user defined Type ID combinations. The problem with the code below is that it generates the following: I have tried ...
I am writing a compiler using JFlex and CUP. I am trying to parse the empty state in my .cup file. To simplify things, consider this grammar: Here, ...
I am using CUP to generate a parser, and I want an empty file to be an acceptable program. I have tried add the empty case to my start symbol, based o ...
I'm trying to run the example on: http://jflex.de/manual.html#Example I've copied the example and only changed the file/class name. Running jflex see ...
I got stuck debugging a CUP grammar. So I have the following grammar in CUP: The lexer is feeding the following tokens to the CUP analyzer: (Wh ...
I am writing a lexer + parser in JFlex + CUP, and I wanted to have Python-like syntax regarding blocks; that is, indentation marks the block level. I ...
I am constructing a grammar in CUP, and I have ran into a roadblock on defining IF-THEN-ELSE statements. My code looked like this: But the CUP too ...