lex
How do lexical analyzers handle comment and escape sequences?
Comment and escape sequence (such as string literal) are very exceptional from regular symbolic representation.[详细]
2023-02-15 15:29 分类:问答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 分类:问答JLex Scanner Generating
I\'m using JLex for our latest assignment, attempting to generate a scanner for a language given to us by the professor.[详细]
2023-02-14 13:25 分类:问答(f)lex can you have multiple expressions in one state?
is it possible to have multiple expression in one state that are similar? I was hoping to group together a few expressions to make life easy for myself. i want to do something similar below but its no[详细]
2023-02-13 04:00 分类:问答Input EOF character (Ctrl+D) in Eclipse CDT
I amusing yacc to parse my input. The parse method generated by yacc requires to input EOF character to mark the end of input. My code is working properly when build from shell. From the shell, I am a[详细]
2023-02-06 09:20 分类:问答What to do with the output of lex?
I have absolutely no background in compilers and started off on a "teach myself" journey. I am learning about lex using this tutorial and typed something like this into a file called first.l[详细]
2023-02-06 02:27 分类:问答Link error when using lex and yacc output in Visual Studio
I am using this windows version of flex (lex) and bison (yacc) to port my query compiler from linux to Windows.[详细]
2023-02-05 23:44 分类:问答Thread-safe C++ wrapper around a lex/yacc parser
I am trying to write a JSON parser (instead of using one of the freely available ones, because of certain project constraints) and have written lex+yacc based version with a simple wrapper C++ class.[详细]
2023-02-05 22:17 分类:问答What's the naming convention of a lexer?
function yy_r9_1($yy_subpatterns) { $this->token = Smarty_Internal_Templateparser::TP_PHP_CODE; 开发者_高级运维[详细]
2023-02-05 21:59 分类:问答Error declaring hash_map in lex file
I\'m working on writing a simple preprocessor for a compi开发者_如何转开发ler. Below is an edited snippet of my code:[详细]
2023-02-05 07:30 分类:问答