bison Questions
1
I'm trying to interface a C++ flex with a C++ bison and I'm stumped. The Bison 3.8.1 manual has an example of a C++ Bison w/a C Flex. The Flex 2.6.4 doesn't have an example. The issue that I'm tryi...
Hooker asked 19/6, 2023 at 20:21
4
I'm trying to use flex and bison to create a simple scripting language. Right now, I'm just trying to get a calculator working.
I can't get it to compile, though. When I run this makefile:
OBJECT...
Crow asked 26/9, 2009 at 1:2
4
Solved
Is there a simple way for integrating Bison/Flex/Yacc into XCode?
I want to write my own language to be parsed, which interacts with my ObjC objects.
But the tools will only take STDIN as input, ...
Bridgeman asked 9/6, 2011 at 17:19
6
This is my code in file skener.y
%{
#include <stdio.h>
%}
%token T_Int
%%
exp: T_Int { $$ = $1; }
| exp exp '+' { $$ = $1 + $2; }
| exp exp '-' { $$ = $1 - $2; }
| exp exp '*' { $$ = $1 * ...
3
Solved
2
Solved
I am making a GUI program using Qt4, under git source control (Github page). Small part of project requires scanning and parsing. So I want to use flex and bison with the project. I can think of 3 ...
Tennant asked 19/1, 2013 at 8:14
2
Solved
I wrote bison code header:
%{
#include "foo.h"
%}
And I defined a struct named 'Foo' in header. I'd like to use it as token type in Bison.
%define api.value.type union
%token <Foo*> bar
...
Barnaby asked 9/12, 2017 at 7:32
7
Solved
The version of GNU Bison on my mac is 2.3 but I know that Bison 2.5 was released long ago. The book Flex & Bison uses version 2.5.
Should I upgrade to 2.5 myself? Is it necessary?
What's the ...
1
Solved
I need to have proper error messages for syntax errors for a grammar I'm writing. I've figured out that I can define a rule (? not sure about the terminology) for newlines in the flex file th...
Boadicea asked 31/5, 2020 at 12:7
3
Solved
OK, so I suppose my question is quite self-explanatory.
I'm currently building a parser in Bison, and I want to make error reporting somewhat better.
Currently, I've set %define parse.error verbo...
Aboutship asked 14/3, 2014 at 14:24
2
Solved
Does anyone knows if there are some tutorials and/or examples of using GNU Bison with Java over the net. I've searched through the net. But i didn't manage to find anything. I have tried to impleme...
Provincetown asked 13/2, 2012 at 21:43
5
Solved
If I forget to put an empty line at the end of any of my files my program gets a syntax error. The problem is my grammar expects a newline to end the current line. Since a newline doesn't exist bis...
1
I'm running macOS 10.14 and I installed bison version 3.2 with brew, but it refuses to link:
$ brew link bison --force
Warning: Refusing to link macOS-provided software: bison
If you need to have ...
7
Solved
I would like to create my own programming language. Maybe not exactly a programming language from scratch but maybe base it on another language.
I've heard of Yacc. So, I installed Flex and Bison...
Inodorous asked 12/7, 2013 at 7:56
3
I'm using Bison to generate a parser. I've got one shift/reduce conflict where I really need Bison to use GLR rather than LALR to deal with it. But I've passed the %glr-parser directive and the sou...
5
Solved
I'm trying to install Thrift on my macbook.
Otherwise I got an error:
configure: error: Bison version 2.5 or higher must be installed on the system!
So tried to install Bison on my OS, but I d...
4
Solved
$ brew install bison
Warning: bison-3.0.2 already installed
$ bison -V
bison (GNU Bison) 2.3
How can I change the Bison version in use to 3.0.2? I'm on OS X 10.9.4. I've restarted my terminal aft...
5
Solved
I'm looking for a syntax in Sublime Text that highlights my Flex and Bison files (or lex/yacc) in a way that makes them readable... Sublime Text automatically chooses Lisp for Flex files, but that ...
Inquiline asked 2/10, 2013 at 12:19
9
Solved
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?
Drawtube asked 28/3, 2011 at 7:47
1
Solved
I already have a calculator program based on bison and flex which takes input from command line arguments.
Now how can I rewrite the programs, so that I don't have to call flex but only call biso...
Competence asked 8/2, 2019 at 21:47
1
Solved
When using flex and bison together,
whyc does a flex file need to #include a C header created by bison?
compilation requires both the C source files created by bison and by flex. What do the C s...
Frottage asked 7/2, 2019 at 22:45
8
Solved
I want to create a read-eval-print loop using flex/bison parser. Trouble is, the flex generated lexer wants input of type FILE* and i would like it to be char*. Is there anyway to do this?
One sug...
Parliamentary asked 23/4, 2009 at 7:34
2
Solved
I am working on building a lexical and syntax analyzer. I am getting the following warning when I try to use flex with my .l file.
littleDuck.l:26: warning, rule cannot be matched
Rule 26 is th...
Camail asked 24/2, 2013 at 22:25
1
The overall question is:
How does my grammar have to look like to allow for arbitrarily nested expr := '(' expr ')' => expr | expr_without_short_closure and expr_without_short_closure := [expr_...
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 Next >
© 2022 - 2024 — McMap. All rights reserved.