flex-lexer Questions
3
Solved
I'm trying to use flex and bison in my project to generate a parser code for a file structure. Main programming language is C++ and project is on an OO design mainly running in parallel.
I heard ...
Marybelle asked 26/7, 2012 at 16:47
1
Solved
I know there are very similar worded questions on here, but I could not find an answer to my question there, so here we go:
I'm trying to see which of my C++ methods are called by others so I found...
Surpass asked 22/6, 2018 at 10:34
1
Solved
This is a very silly problem. There are no errors in the grammar rules afaik but its not giving the right output. I have been staring at it but the mistake is not visible to me.
What tools are ava...
Rabassa asked 12/6, 2018 at 9:12
5
Solved
What is the difference between Flex & Lex and Yacc & Bison. I searched the Internet wildly and I didn't find any solid answer.
Can I install pure Lex and Yacc on Ubuntu, or I can install o...
Coatee asked 8/3, 2009 at 12:31
6
Solved
I'm looking for a good development environment in which to work on flex or bison or both.
Are there any IDE's that have these capabilities and/or are suitable for this?
(If not the next mos...
Imam asked 19/7, 2009 at 16:49
1
Solved
I would really prefer a working example to any explanation. Whatever I read so far on Bison's documentation site contradicts whatever Flex says. One says to declare yylex as
int yylex (yyscan_t y...
Enforcement asked 18/2, 2018 at 9:37
2
Solved
I'm trying to get rid of a warning that gcc is throwing when I try to compile my bison and flex files:
: In function ‘yy_init_buffer’:
:1675: warning: implicit declaration of function ‘fileno’
T...
Progressist asked 14/9, 2017 at 8:12
3
Solved
I would like to be able to parse a non-empty, one-or-many element, comma-delimited (and optionally parenthesized) list using flex/bison parse rules.
some e.g. of parseable lists :
1
1,2
(1,2)
(...
Commend asked 4/6, 2011 at 2:29
3
I've read http://msdn.microsoft.com/en-us/library/aa730877%28vs.80%29.aspx but this document was for VS 2005. I stuck on the part 'Importing a .rules File in Visual C++' in the document. It seems t...
Filtration asked 3/5, 2011 at 10:54
3
Solved
I wanted to experiment with the Shakespeare programming language, so I downloaded it from here and executed the Makefile using cd spl-1.2.1 Make.
The compilation of spl2c executes with a couple w...
Alroy asked 22/12, 2009 at 18:46
3
I have searched almost every material online. But I am still confused why lexer cannot identify yylval.
Here is the case:
I have defined a bunch of ADT in node.h and realize them in node.c, my pu...
Mozart asked 9/6, 2011 at 19:37
3
Solved
I am wondering if the newest version of flex supports unicode?
If so, how can use patterns to match Chinese characters?
More:
Use regular expression to match ANY Chinese character in utf-8 encodi...
Counterproposal asked 8/3, 2012 at 1:21
3
Solved
I'm writing a parser using flex. I'm using Mac OS X 10.6.7.
I have already include header files like this:
#include "string.h"
#include "stdlib.h"
but it says
Undefined symbols for architectur...
Byrnes asked 19/5, 2011 at 17:55
3
Solved
How can I detect one line comments like // in Flex and skip those lines?
Also, for /* comments, will the following snippet be enough?
"/*" { comment(); }
%%
comment()
{
char c, c1;
loop:
...
Greenshank asked 20/8, 2014 at 1:2
1
Solved
I'm writing trying to learn flex / bison. I've got some basic c examples now, but I'd like to move on to doing a C++ AST tree. c++ makes this type of object oriented program easier than C. However,...
Sufi asked 17/11, 2016 at 19:33
5
Solved
I've been learning to use Flex (the lexical analyser) and I've been compiling with the following command:
gcc -lfl -o test lex.yy.c
and all is well. However, I want to link it with other files,...
Sheaves asked 26/12, 2012 at 15:54
3
How should I do program in lex (or flex) for removing nested comments from text and print just the text which is not in comments?
I should probably somehow recognize states when I am in comment and...
Laubin asked 17/10, 2012 at 20:56
1
Solved
I am new in this, so I wondered why do I need to use these directives
%option nounput
%option noinput
Yeah, I am aware that otherwise I'd have these warnings:
lex.yy.c:1237:17: warning: ‘yyunpu...
Rabelais asked 22/8, 2016 at 9:12
2
Solved
I have a C++ program that calls some C routines that are generated by Flex / Bison.
When I target a Windows 8.1 64-bit platform, I hit the following exception at runtime:
Unhandled exception at 0...
Disjuncture asked 11/7, 2014 at 18:45
5
Solved
In my programming project I want to parse command line attributes using flex/bison. My program is called like this:
./prog -a "(1, 2, 3)(4, 5)(6, 7, 8)" filename
Is it possible to parse this str...
Windham asked 25/11, 2010 at 17:43
5
Solved
Can someone tell me how I can install flex (lexical analyzer) 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 desktop but I have...
Melancholia asked 7/3, 2011 at 1:46
2
How does one make a comment in Lex and Yacc?
So far I haven't tried Yacc, but in Lex I have tried /* comment */ and // comment, but neither of these compile. I am on a Mac, using the builtin Lex a...
Galbraith asked 17/5, 2016 at 2:52
1
Quoting the book flex & bison (O'Reilly, John Levine, 2009):
"Bison can create parsers in C++. Although flex appears to be able to create C++, scanners, the C++ code doesn't work.[21] Fortu...
Salamanca asked 16/4, 2016 at 16:5
2
Solved
I'm learning how to use reentrant Bison and Flex together. I already got a simple calculator working without the reentrant capability. However when I activated the reentrant feature and made the ne...
Berate asked 12/9, 2015 at 4:14
1
Solved
I am trying to build a program using multiple parsers. I have put the flex / bison files of the different parsers in separate folders to avoid conflicts.
I have used different prefixes to be able ...
Isolated asked 24/2, 2016 at 15:36
© 2022 - 2024 — McMap. All rights reserved.