lex
Can I get lex to put out a yylex() function with a different name?
I want to have two lexers in one project, and I don\'t want to run into problems with hav开发者_C百科ing multiple yylex functions in the build. Can I make lex output with a different prefix? You can u[详细]
2023-02-25 03:29 分类:问答How can I use the flex lexical scanner generator as part of my program?
How can I use a scanner I\'ve written using Flex as part of a program I\'m designing? Specifically, within a c++ class as a method of the class, and from a separate file with just a main method to per[详细]
2023-02-21 06:01 分类:问答How to compile LEX/YACC files on Windows?
I\'m having Lex and YACC files to parse my files (.l file and .y file). How to compile those files and how 开发者_运维问答to make equivalent .c file for them in windows platform?As for today (2011-04[详细]
2023-02-20 00:15 分类:问答What are the standard grammar parsers for iOS?
Does iOS for iPad and iPhone have support for a parser?In particular, is lex/yacc or flex/bison available for iOS development?Does xcode4 have a nativ开发者_运维知识库ely supported library?(I could ge[详细]
2023-02-19 09:36 分类:问答Flex / Lex Encoding Strings with Escaped Characters
I\'ll refer to this question for some of the background: Regular expression for a string literal in flex/lex[详细]
2023-02-19 05:35 分类:问答make calling bison -y without being asked to
I have a grammar I\'m writing, called portugol. The files names are basic, but I chose to call my c program portugol.c.[详细]
2023-02-18 17:38 分类:问答Using lex and yacc [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will like开发者_开发知识库ly[详细]
2023-02-18 12:36 分类:问答Confusion in continuing the Project Related to C Syntax Analyser
My target is to make a program (using C++) which would take C source code as input and check for \"SYNTAX ERRORS ONLY\".[详细]
2023-02-18 03:10 分类:问答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 分类:问答How to recognize a string literal for a scanner in lex?
Ok, I have been trying to find a regular expression in lex that will recognize a C-like string literal in an input string. eg. in printf(\"stackoverflow\"), \"stackoverflow\" should be recognized as a[详细]
2023-02-17 01:27 分类:问答