cpython/Parser
Guido van Rossum fbd64c8790 Restructured quite a bit, hopefully Lee Busby will find this useful.
Also grandly renamed.

Here's the new interface:

When WITH_READLINE is defined, two functions are defined:

  - PyOS_GnuReadline (what used to be my_readline() with WITH_READLINE)
  - PyOS_ReadlineInit (for Dave Ascher)

Always, these functions are defined:

  - PyOS_StdioReadline (what used to be my_readline() without WITH_READLINE)
  - PyOS_Readline (the interface used by tokenizer.c and [raw_]input().

There's a global function pointer PyOS_ReadlineFunctionPointer,
initialized to NULL.  When PyOS_Readline finds this to be NULL, it
sets it to either PyOS_GnuReadline or PyOS_StdioReadline depending on
which one makes more sense (i.e. it uses GNU only if it is defined
*and* stdin is indeed a tty device).

An embedding program that has its own wishes can set the function
pointer to a function of its own design.  It should take a char*
prompt argument (which may be NULL) and return a string *ending in a
\n character* -- or "" for EOF or NULL for a user interrupt.

--Guido van Rossum (home page: http://www.python.org/~guido/)
1997-02-18 21:53:32 +00:00
..
Makefile.in added $& to $(LIB) target for Sequent 1995-01-17 16:11:29 +00:00
acceler.c Rename DEBUG macro to Py_DEBUG 1996-12-30 16:17:54 +00:00
assert.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
bitset.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
firstsets.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
grammar.c Rename DEBUG macro to Py_DEBUG 1996-12-30 16:17:54 +00:00
grammar1.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
intrcheck.c Added decl for Py_AddPendingCall and include mymalloc.h, all to keep 1997-02-14 21:12:24 +00:00
listnode.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
metagrammar.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
myreadline.c Restructured quite a bit, hopefully Lee Busby will find this useful. 1997-02-18 21:53:32 +00:00
node.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
parser.c Rename DEBUG macro to Py_DEBUG 1996-12-30 16:17:54 +00:00
parser.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
parsetok.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
pgen.c Rename DEBUG macro to Py_DEBUG 1996-12-30 16:17:54 +00:00
pgen.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
pgenmain.c Make gcc -Wall happy 1996-12-02 18:27:33 +00:00
printgrammar.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
tokenizer.c Rename DEBUG macro to Py_DEBUG 1996-12-30 16:17:54 +00:00
tokenizer.h New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00