On 02/18/2013 11:15 AM, Rudra Banerjee wrote:
On Mon, 2013-02-18 at 19:02 +0100, David Nečas wrote:
The best approach to parse a grammar is, you know, using a parser.
So anything better then bison?
You can write your own parser if you want. Maybe a recursive-descent
parser. You will want to
Dear Friends,
I am trying to parse a bibtex file using gscanner.
The problem is that, due to many formats accepted by bibtex, it seems
bit hard to parse it.
What I mean is as long as the bibtex is of the form key=some value,
then g_scanner_get_next_token can get the string.
But it fails if it is
Below is a minimal example.
One can check the problem with key={some value} by changing, say,
author = \Chowdhury, D.\,\n
to
author = {Chowdhury, D.},\n
This can be compiled as
gcc -Wall `pkg-config --cflags --libs gtk+-3.0` glex.c
/*glex.c*/
#include glib.h
#include string.h
/* Test data */
On Mon, Feb 18, 2013 at 05:15:56PM +, Rudra Banerjee wrote:
I am trying to parse a bibtex file using gscanner.
The problem is that, due to many formats accepted by bibtex, it seems
bit hard to parse it.
What I mean is as long as the bibtex is of the form key=some value,
then
I forget the acknowledgment:
http://www.gtkforums.com/viewtopic.php?f=3t=178159
On Mon, 2013-02-18 at 18:00 +, Rudra Banerjee wrote:
Below is a minimal example.
One can check the problem with key={some value} by changing, say,
author = \Chowdhury, D.\,\n
to
author = {Chowdhury, D.},\n
On Mon, 2013-02-18 at 19:02 +0100, David Nečas wrote:
The best approach to parse a grammar is, you know, using a parser.
So anything better then bison?
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
On Mon, 2013-02-18 at 19:02 +0100, David Nečas wrote:
The best approach to parse a grammar is, you know, using a parser.
So is there any better option then bison?
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org