ly: combine your lex and yacc specs into one file

2010-11-07 Thread Jack Andrews
hi guys, thought this may interest some: http://www.ivorykite.com/ly.html ta, jack. ___ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Re: Bison Windows m4 problems

2010-03-10 Thread Jack Andrews
> > 1>-- Build started: Project: parser, Configuration: Debug Win32 -- > 1>[BISON][MyParser] Building parser with bison 2.4.1 > 1>m4: cannot open `Files\GnuWin32/share/bison': No such file or directory > 1>m4: cannot open `C:\Program': No such file or directory > 1>m4: cannot open `Fil

Re: I got an error using Bison

2009-11-16 Thread Jack Andrews
> Hi, I am using bison-2.4.1 for Windows. I have it already installed > in C:\Archivos de programa\GnuWin32\I'm trying to compile with Bison [snip] > m4: cannot open ‘de’: No such file or directory install bison to a directory with no spaces. eg: c:\local\... ta, jack

signed numeric literals

2008-09-18 Thread Jack Andrews
hi guys, in the context of a C like language, how do i parse/lex a signed literal? eg: "-1". (speech marks excluded) in the lexer, i can't tell if we're in an expression eg: "2-1" or if we're in assigment: "int x=-1". i've studied the freely available C grammar for hints, but can't find an a

Re: two yyparse() functions in the same program

2008-08-02 Thread Jack Andrews
> one for the back end. So i will need two parsers in the same program > but there will be a conflict between the function names as with the global > variables. see -p ___ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

variables of different classes

2008-04-30 Thread Jack Andrews
hi guys, in the typical calculator example that allows statements like: a=2+3 it is fairly easy to parse and interpret code like b=a+1 but what if you could assign '+' to a variable: p=+ now that a variable could be an number or an operator, it's hard to parse eg. how can i parse string "a p b"