Orbits  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
Classes | Macros | Functions
grammar.h File Reference
#include "bitset.h"

Go to the source code of this file.

Classes

struct  label
 
struct  labellist
 
struct  arc
 
struct  state
 
struct  dfa
 
struct  grammar
 

Macros

#define EMPTY   0 /* Label number 0 is by definition the empty label */
 

Functions

grammarnewgrammar (int start)
 
dfaadddfa (grammar *g, int type, char *name)
 
int addstate (dfa *d)
 
void addarc (dfa *d, int from, int to, int lbl)
 
dfaPyGrammar_FindDFA (grammar *g, int type)
 
int addlabel (labellist *ll, int type, char *str)
 
int findlabel (labellist *ll, int type, char *str)
 
char * PyGrammar_LabelRepr (label *lb)
 
void translatelabels (grammar *g)
 
void addfirstsets (grammar *g)
 
void PyGrammar_AddAccelerators (grammar *g)
 
void PyGrammar_RemoveAccelerators (grammar *)
 
void printgrammar (grammar *g, FILE *fp)
 
void printnonterminals (grammar *g, FILE *fp)
 

Macro Definition Documentation

#define EMPTY   0 /* Label number 0 is by definition the empty label */

Function Documentation

void addarc ( dfa d,
int  from,
int  to,
int  lbl 
)
dfa* adddfa ( grammar g,
int  type,
char *  name 
)
void addfirstsets ( grammar g)
int addlabel ( labellist ll,
int  type,
char *  str 
)
int addstate ( dfa d)
int findlabel ( labellist ll,
int  type,
char *  str 
)
grammar* newgrammar ( int  start)
void printgrammar ( grammar g,
FILE fp 
)
void printnonterminals ( grammar g,
FILE fp 
)
void PyGrammar_AddAccelerators ( grammar g)
dfa* PyGrammar_FindDFA ( grammar g,
int  type 
)
char* PyGrammar_LabelRepr ( label lb)
void PyGrammar_RemoveAccelerators ( grammar )
void translatelabels ( grammar g)

Copyright 2014 Google Inc. All rights reserved.