X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;ds=sidebyside;f=rdp.h;h=0daaddcb7e12370fc4cc8c722ca10e15eb7ddb8e;hb=HEAD;hp=fc700fc0c20c1ce70012cc05b3ead07604c12bea;hpb=b634d3dac61fc6bb42bafd01eae3dbf6ae8e961d;p=cascardo%2Fgrammar.git diff --git a/rdp.h b/rdp.h index fc700fc..0daaddc 100644 --- a/rdp.h +++ b/rdp.h @@ -1,23 +1,40 @@ +/* + * Copyright (C) 2005 Thadeu Lima de Souza Cascardo + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + + + #ifndef RDP_H #define RDP_H -#include "parser.h" +#include -typedef struct -{ - symbol_t* symbol; - gpointer attrib; -} buffer_t; +typedef struct _buffer buffer_t; typedef struct { nextcb cb; gpointer data; - GList* rules; GList* buffer; + symbol_t* start; + grammar_t* grammar; } rdp_t; -rdp_t* rdp_new (nextcb, gpointer); +rdp_t* rdp_new (nextcb, gpointer, gint, grammar_t*); void rdp_delete (rdp_t*); gpointer rdp_build (rdp_t*);