flex-lexer
Bison: Optional tokens in a single rule
I\'m using GNU Bison 2.4.2 to write a grammar for a new language I\'m working on and I have a question.[详细]
2022-12-27 04:49 分类:问答Writing re-entrant lexer with Flex
I\'m newbie to flex. I\'m trying to write a simple re-entrant lexer/scanner with flex. The lexer definition goes below. I get stuck with compilation errors as shown below (yyg issue):[详细]
2022-12-26 14:06 分类:问答Error compiling flex (the lexical analyzer)
I\'m trying to install flex (the lexical analyzer, not the Adobe program) on my Windows computer. I have MSYS installed. I untar flex, ./configure it, but when I try to make it, I get th开发者_StackOv[详细]
2022-12-24 07:56 分类:问答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 分类:问答FLEX/BISON : Why my rule is not regonized?
I am trying to do a little exercice in FLEX and BISON. Here is the code I wrote : calc_pol.y %{ #define YYSTYPE double[详细]
2022-12-22 21:18 分类:问答Are back references possible in flex (lexical analyser)?
I\'m used to play with regexp in languages where I can use parenthesis to capture references. The only thing near that in flex that I\'m seeing is the yytext variable. But it\'s contents are the full[详细]
2022-12-22 16:14 分类:问答Advanced vim autocompletion
I am trying to build a lexical analyzer using flex. Following is a line which shows a regular expression and its corresponding action.[详细]
2022-12-20 07:32 分类:问答How Can I Get a Flex Scanner To Return Bison's Error Token?
Bison uses a special error token (called \'error\') that one can use in a Bison par开发者_Go百科ser to recover from errors.Is there a way to return this specific token from a scanner generated by Flex[详细]
2022-12-20 03:10 分类:问答lex (flex) generated program not parsing whole input
I have a relatively simple lex/flex file and have been running it with flex\'s debug flag to make sure it\'s tokenizing properly. Unfortunately, I\'m always running into one of two problems - either t[详细]
2022-12-19 22:40 分类:问答