LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   BNF Parser generator - how to use it? (https://www.linuxquestions.org/questions/linux-newbie-8/bnf-parser-generator-how-to-use-it-456265/)

Enjo 06-19-2006 12:10 PM

BNF Parser generator - how to use it?
 
Hi

Using this example:
http://www.nongnu.org/bnf/#example
I created a sample.bnf file, converted to .C file uning bnf binary, created additional .C file with the function call (as in example), linked both with:
gcc -c sample.c sample1.c
compiled with
gcc sample.o sample1.o -o sample

and now what ?
It's supposed to convert "foo" to "bar" somehow but after running "sample" the program looks like it's waiting for an input but I write foo, ENTER nad nothing happens, same as when witing "sample foo" from shell

[EDIT]
To get the parser you best follow instructions under "anonymous cvs access":
http://savannah.nongnu.org/cvs/?group=bnf

Thanks in advance!


All times are GMT -5. The time now is 09:18 PM.