flex-lexer
Is there a way to change the flex start state from bison?
I have defined different states in my lexer, which change not depending on the token but on a s开发者_如何转开发equence of tokens (similarly to how template engines work). I can define longer tokens b[详细]
2023-02-18 14:51 分类:问答Writing a compiler
I basically need to make a compiler for bibtex files, such that a given bibtex database can be queried. Now I\'m familiar with certain aspects of theory, like automata, grammars, SLR,LR(1) and LALR pa[详细]
2023-02-18 10:23 分类:问答Only part of matched string in flex in yytext
I\'m a newbie but I would like to know if I can, with flex, parse something with regex in a way yytext would only be part of the matched sequence. For example: @abcd{efgh,. I would like to match abcd[详细]
2023-02-18 01:00 分类:问答Integrating Flex/Bison with external program
I\'m working on an intelligent agent 开发者_如何学JAVAmodel that requires, as input, a list of events.The events come from the output of another model and are in a (large) text file.The text file is a[详细]
2023-02-17 01:07 分类:问答Flex/Bison... small inquiry?
I\'m a newbie with flex/bison and try to implement the first steps of my parser/lexer... In my \"tokens.l\" file I do the following to identify a \"keyword\" :[详细]
2023-02-16 04:53 分类:问答Installing flex (lexical analyzer) on Mac
Can someone tell me how I can install flex (lexical analyze开发者_运维百科r) on my Mac? I searched everywhere on google and I can\'t find it. I have the universal binary and I extracted it to my deskt[详细]
2023-02-15 08:41 分类:问答Trouble linking against LLVM with project including Flex and Bison
I\'ve been working through a tutorial on writing compilers with Flex, Bison, and LLVM (http://gnuu.org/2009/09/18/writing-your-own-toy-compiler/), and attempting to compile the final binary fails with[详细]
2023-02-15 05:36 分类:问答Regex to catch that there's no white space at the start of a line (flex)
I\'m working on a lexer for the Python grammar (written in Flex) for a compiler construction class and I\'m having trouble getting a properly working regular expression to catch when there is no white[详细]
2023-02-15 05:33 分类:问答Multiple lexers with flex++
I am trying to link various Flex++ Lexers in the same executable. However, I get compile errors as a result because of symbol redefinition. I tried to set different prefixes but it was no use: These a[详细]
2023-02-14 14:43 分类:问答Configuring Bison to compile an input file under Visual C 6
I\'m trying to get Bison to do it\'s thing in VC6. I\'m sure this must be a problem with my configuration. At the moment I have a Custom Build step as follows.[详细]
2023-02-14 05:23 分类:问答