parse bibtex with flex+bison
I want to parse bibtex file using flex/bison. A sample bibtex is:
Code:
@Book{a1, Code:
%{ Some help please. |
I'm rooting for you.
Edit later: Good, you have added code since my first reply. Later: you forgot the Makefile, so here is one for test: Code:
CFLAGS += -m32 -std=c99 -g -W -Wall -Wextra Code:
$ ./bibtex <bibtex.in |
NevemTeve?
|
Quote:
With flex -i, one will get the output as Quote:
i.e., may be something like which are commented in C block of the code. Any further help please? |
I'd start with something simpler, eg:
sample.in: Code:
author="amook" Code:
%{ Code:
Record found: amook: ASR |
All times are GMT -5. The time now is 11:53 AM. |