lex
Unable to compile output of lex
When I attempt to compile the output of this trivial lex program: # lex.l integerprintf(\"found keyword INT\");[详细]
2022-12-26 14:37 分类:问答Library to parse ERB files
I am attempting to parse, not evaluate, rails ERB files in a Hpricot/Nokogiri type manner开发者_如何学Go.The files I am attempting to parse contain HTML fragments intermixed with dynamic content gener[详细]
2022-12-25 16:50 分类:问答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 分类:问答Big problem with regular expression in Lex (lexical analyzer)
I have some content like this: author = \"Marjan Mernikand Viljem Zumer\", title = \"Implementation of multiple attribute grammar inheritance in the tool LISA\",[详细]
2022-12-25 00:38 分类:问答Yacc and Lex inclusion confusion
I am wondering how to correctly compile a program with a Makefile that has calls to yyparse in it? This is what I do:[详细]
2022-12-24 03:26 分类:问答How do I generate different yyparse functions from lex/yacc for use in the same program?
I want to generate two separate parsing functions from lex/yacc. Normally yacc gives you a function yyparse() that you can call when you need to do some parsing, but I need to have several different y[详细]
2022-12-24 01:45 分类:问答Lex: How do I Prevent it from matching against substrings?
For example, I\'m supposed to convert \"int\" to \"INT\". But if there\'s the word \"integer\", I don\'t think it\'s supposed to turn into \"INTeger\".[详细]
2022-12-22 01:48 分类:问答How can I implement #include constructs with Flex and YACC?
During parsing, if I encounter a include token I want to inst开发者_开发技巧ruct YACC to open the file specified as input and to begin parsing this. Once this parsing is finished, I want to instruct Y[详细]
2022-12-20 11:01 分类:问答Problems with data types in flex
I have a problem. I\'m writing a program with flex and I\'m using this code: %union { int entero; char *cadena;[详细]
2022-12-20 07:12 分类:问答