jflex
jflex: Why does this regex match?
in my lexer I wrote the following regex: \"///\"\\s*[^@\\s].* I executed byacc/j in debug mode and it states that the following line matched the regex.[详细]
2023-03-29 14:52 分类:问答Syntaxic analysis and parser
I want to parse something like that : path.to.variable \"path\" and \"to\" are object named \"Instance开发者_运维问答\" and variable reference a double.[详细]
2023-03-28 22:36 分类:问答Trouble setting up jFlex
I wanted to use jFlex. Tried to search online tutorials. But all points to the same link. I could not successfully set up and use Flex o开发者_如何转开发n my machine.[详细]
2023-02-14 13:16 分类:问答Create abstract tree problem from parser
I need big help, I have two simple classes Tree and Node ( I put just interface to use less space on forum, I can easy modify those classes ), I also have flex file and parser file and need to create[详细]
2023-02-04 13:03 分类:问答Building up a compiler with JFlex/CUP and with some questions
I am currently developing an easy compiler for the language BASIC and I have found some problems which I would like to ask you.[详细]
2023-02-02 01:40 分类:问答Moving to Maven from GNUMake
I\'ve been a long time user of the Make build system, but I have decided to begin learning the Maven build system. While I\'ve read through most of the online docs, none seem to give me the analogies[详细]
2023-01-21 06:34 分类:问答How do I use regular expression capturing groups with JFlex?
Although this question is about JFlex, it probably applies to other scanner generators such as lex, flex as well.[详细]
2023-01-19 22:23 分类:问答What is an example of a lexical error and is it possible that a language has no lexical errors?
for our compiler 开发者_C百科theory class, we are tasked with creating a simple interpreter for our own designed programming language. I am using jflex and cup as my generators but i\'m a bit stuck wi[详细]
2023-01-11 08:46 分类:问答distinguishing a string with flex
I need to tokenize some strings w开发者_C百科hich will be splitted of according to operators like = and !=. I was successful using regex until the string has != operator. In my case, string was sepera[详细]
2022-12-25 12:18 分类:问答Is there a jflex specification of java string literals somewhere?
And by string literals I mean those containing \\123-like characters too. I\'ve written something but I don\'t know if it\'s perfect:[详细]
2022-12-18 14:52 分类:问答