PATH:
opt
/
bitninja-python-dojo
/
embedded
/
include
/
python3.9
/* Grammar interface */ #ifndef Py_GRAMMAR_H #define Py_GRAMMAR_H #ifdef __cplusplus extern "C" { #endif #include "bitset.h" /* Sigh... */ /* A label of an arc */ typedef struct { int lb_type; const char *lb_str; } label; #define EMPTY 0 /* Label number 0 is by definition the empty label */ /* A list of labels */ typedef struct { int ll_nlabels; const label *ll_label; } labellist; /* An arc from one state to another */ typedef struct { short a_lbl; /* Label of this arc */ short a_arrow; /* State where this arc goes to */ } arc; /* A state in a DFA */ typedef struct { int s_narcs; const arc *s_arc; /* Array of arcs */ /* Optional accelerators */ int s_lower; /* Lowest label index */ int s_upper; /* Highest label index */ int *s_accel; /* Accelerator */ int s_accept; /* Nonzero for accepting state */ } state; /* A DFA */ typedef struct { int d_type; /* Non-terminal this represents */ char *d_name; /* For printing */ int d_nstates; state *d_state; /* Array of states */ bitset d_first; } dfa; /* A grammar */ typedef struct { int g_ndfas; const dfa *g_dfa; /* Array of DFAs */ const labellist g_ll; int g_start; /* Start symbol of the grammar */ int g_accel; /* Set if accelerators present */ } grammar; /* FUNCTIONS */ const dfa *PyGrammar_FindDFA(grammar *g, int type); const char *PyGrammar_LabelRepr(label *lb); void PyGrammar_AddAccelerators(grammar *g); void PyGrammar_RemoveAccelerators(grammar *); #ifdef __cplusplus } #endif #endif /* !Py_GRAMMAR_H */
[-] picklebufobject.h
[edit]
[-] pystate.h
[edit]
[-] pyexpat.h
[edit]
[-] rangeobject.h
[edit]
[-] eval.h
[edit]
[-] namespaceobject.h
[edit]
[-] funcobject.h
[edit]
[-] pyfpe.h
[edit]
[-] intrcheck.h
[edit]
[-] pyport.h
[edit]
[-] pythread.h
[edit]
[-] longintrepr.h
[edit]
[-] fileutils.h
[edit]
[-] ceval.h
[edit]
[-] dictobject.h
[edit]
[-] bytesobject.h
[edit]
[-] ast.h
[edit]
[-] object.h
[edit]
[-] modsupport.h
[edit]
[-] floatobject.h
[edit]
[-] enumobject.h
[edit]
[-] grammar.h
[edit]
[-] pystrcmp.h
[edit]
[+]
..
[-] pymath.h
[edit]
[-] objimpl.h
[edit]
[-] opcode.h
[edit]
[-] pycapsule.h
[edit]
[-] warnings.h
[edit]
[-] symtable.h
[edit]
[-] exports.h
[edit]
[-] longobject.h
[edit]
[-] classobject.h
[edit]
[-] import.h
[edit]
[-] boolobject.h
[edit]
[-] code.h
[edit]
[-] genericaliasobject.h
[edit]
[-] pyerrors.h
[edit]
[-] datetime.h
[edit]
[-] traceback.h
[edit]
[-] structmember.h
[edit]
[-] marshal.h
[edit]
[-] osdefs.h
[edit]
[-] fileobject.h
[edit]
[-] genobject.h
[edit]
[-] pyconfig.h
[edit]
[-] typeslots.h
[edit]
[-] pythonrun.h
[edit]
[-] parsetok.h
[edit]
[-] complexobject.h
[edit]
[-] frameobject.h
[edit]
[-] abstract.h
[edit]
[-] descrobject.h
[edit]
[-] sliceobject.h
[edit]
[-] interpreteridobject.h
[edit]
[-] pyframe.h
[edit]
[-] iterobject.h
[edit]
[-] unicodeobject.h
[edit]
[-] pystrhex.h
[edit]
[-] cellobject.h
[edit]
[-] methodobject.h
[edit]
[-] tupleobject.h
[edit]
[-] pyctype.h
[edit]
[-] moduleobject.h
[edit]
[-] Python-ast.h
[edit]
[-] patchlevel.h
[edit]
[-] errcode.h
[edit]
[-] bitset.h
[edit]
[-] py_curses.h
[edit]
[-] weakrefobject.h
[edit]
[-] tracemalloc.h
[edit]
[-] bltinmodule.h
[edit]
[-] pymacconfig.h
[edit]
[-] pystrtod.h
[edit]
[-] compile.h
[edit]
[-] listobject.h
[edit]
[-] node.h
[edit]
[-] pylifecycle.h
[edit]
[-] pyhash.h
[edit]
[-] graminit.h
[edit]
[-] pymacro.h
[edit]
[-] bytearrayobject.h
[edit]
[-] pydtrace.h
[edit]
[+]
internal
[-] memoryobject.h
[edit]
[+]
cpython
[-] sysmodule.h
[edit]
[-] pymem.h
[edit]
[-] codecs.h
[edit]
[-] asdl.h
[edit]
[-] dynamic_annotations.h
[edit]
[-] structseq.h
[edit]
[-] pydebug.h
[edit]
[-] context.h
[edit]
[-] token.h
[edit]
[-] Python.h
[edit]
[-] pyarena.h
[edit]
[-] setobject.h
[edit]
[-] pytime.h
[edit]
[-] odictobject.h
[edit]
[-] osmodule.h
[edit]
[-] ucnhash.h
[edit]