summaryrefslogtreecommitdiffstats
path: root/Parser
Commit message (Collapse)AuthorAgeFilesLines
...
* * Parser/tokenizer.c: backup over illegal newline in stringGuido van Rossum1994-08-291-92/+119
| | | | literal (for "completeness" test)
* don't call strncpy(str, NULL, 0)Guido van Rossum1994-08-291-81/+79
|
* Makefile: add $(OPT) to linking lineGuido van Rossum1994-08-291-1/+1
| | | | tokenizer.c: move tok_backup call around
* * Parser/tokenizer.c: backup over illegal newline in stringGuido van Rossum1994-08-231-1/+2
| | | | | literal (for "completeness" test) * */Makefile*.in: remove lib*.a before adding to it
* Merge alpha100 branch back to main trunkGuido van Rossum1994-08-013-28/+106
|
* NoneGuido van Rossum1993-12-242-12/+133
|
* * Grammar: corrected old typo (class instead of 'class')Guido van Rossum1993-12-201-1/+1
| | | | | | | * dosmodule.c: MSDOS specific stuff from posixmodule.c. * posixmodule.c: removed all MSDOS specific stuff. * tokenizer.h, parsetok.h: in prototypes, don't mix named and unnamed parameters (MSC doesn't like this).
* New fileGuido van Rossum1993-12-201-0/+73
|
* * ceval.c, longobject.c, methodobject.c, listnode.c, arraymodule.c,Guido van Rossum1993-11-011-0/+1
| | | | | | pythonrun.c: added static forward declarations * pythonrun.h, ceval.h, longobject.h, node.h: removed declarations of static routines
* Changes to accept double-quoted strings on input.Guido van Rossum1993-10-261-1/+27
|
* * Added support for X11 modules.Guido van Rossum1993-07-284-0/+44
| | | | | | | * Makefile: change location of FORMS library. * posixmodule.c: turn #if 0 into #ifdef MSDOS (stuff in unistd.h or not) * Almost all .h files: added CPP magic to avoid duplicate inclusions and to support inclusion from C++.
* * Makefile: added all: and default: targets.Guido van Rossum1993-07-052-11/+31
| | | | | | | | | | | | * many files: made some functions static; removed "extern int errno;". * frozenmain.c: fixed bugs introduced on 24 June... * flmodule.c: remove 1.5 bw compat hacks, add new functions in 2.2a (and some old functions that were omitted). * timemodule.c: added MSDOS floatsleep version . * pgenmain.c: changed exit() to goaway() and added defn of goaway(). * intrcheck.c: add hack (to UNIX only) so interrupting 3 times will exit from a hanging program. The second interrupt prints a message explaining this to the user.
* * pythonmain.c: -k option, usage message, more environment flags.Guido van Rossum1993-06-241-1/+1
| | | | | | | | | | | (the latter also in frozenmain.c) * ceval.c: global 'killprint' flag raises exception when printing an expression statement's value (useful for finding stray output) * timemodule.c: add asctime() and ctime(). Change julian date to 1-based origin (as intended and documented). * Removed unused DO_TIMES stuff from timemodule.c. Added 'epoch' and 'day0' globals (year where time.time() == 0 and day of the week the epoch started).
* * selectmodule.c: fix (another!) two memory leaks -- this time in list2setGuido van Rossum1993-05-122-2/+19
| | | | * tokenizer.[ch]: allow continuation without \ inside () [] {}.
* * pythonrun.c: Print exception type+arg *after* stack trace instead ofGuido van Rossum1993-05-122-45/+60
| | | | | | | before it. * ceval.c, object.c: moved testbool() to object.c (now extern visible) * stringobject.c: fix bugs in and rationalize string resize in formatstring() * tokenizer.[ch]: fix non-working code for lines longer than BUFSIZ
* (I suggest a recompile after getting this, the ceval.c bugfix may be crucial!)Guido van Rossum1993-04-151-0/+9
| | | | | | | * Makefile: removed superfluous AR=ar, fixed misleading comment. * ceval.c: fixed debugging code; save/restore errors in locals_2_fast. * intrcheck.c: for SunOS etc., turn off syscall resumption. * regexpr.h: bump number of registers to 100.
* * Changed all copyright messages to include 1993.Guido van Rossum1993-03-2918-36/+36
| | | | | | | | | | | | | | | | | * Stubs for faster implementation of local variables (not yet finished) * Added function name to code object. Print it for code and function objects. THIS MAKES THE .PYC FILE FORMAT INCOMPATIBLE (the version number has changed accordingly) * Print address of self for built-in methods * New internal functions getattro and setattro (getattr/setattr with string object arg) * Replaced "dictobject" with more powerful "mappingobject" * New per-type functio tp_hash to implement arbitrary object hashing, and hashobject() to interface to it * Added built-in functions hash(v) and hasattr(v, 'name') * classobject: made some functions static that accidentally weren't; added __hash__ special instance method to implement hash() * Added proper comparison for built-in methods and functions
* * Changed many files to use mkvalue() instead of newtupleobject().Guido van Rossum1993-03-161-4/+7
| | | | | | | | | | * Fixcprt.py: added [-y file] option, do only files younger than file. * modsupport.[ch]: added vmkvalue(). * intobject.c: use mkvalue(). * stringobject.c: added "formatstring"; renamed string* to string_*; ceval.c: call formatstring for string % value. * longobject.c: close memory leak in divmod. * parsetok.c: set result node to NULL when returning an error.
* * bltinmodule.c: added built-in function cmp(a, b)Guido van Rossum1992-10-181-1/+1
| | | | | | | | | | | | | | | * flmodule.c: added {do,check}_only_forms to fl's list of functions; and don't print a message when an unknown object is returned. * pythonrun.c: catch SIGHUP and SIGTERM to do essential cleanup. * Made jpegmodule.c smaller by using getargs() and mkvalue() consistently. * Increased parser stack size to 500 in parser.h. * Implemented custom allocation of stack frames to frameobject.c and added dynamic stack overflow checks (value stack only) to ceval.c. (There seems to be a bug left: sometimes stack traces don't make sense.)
* Correct debug printing codeGuido van Rossum1992-09-031-1/+1
|
* Print warnings to stderr and correct spellingGuido van Rossum1992-09-031-2/+2
|
* Copyright for 1992 addedGuido van Rossum1992-04-0515-15/+15
|
* Copyright for 1992 addedGuido van Rossum1992-04-054-4/+4
|
* Added guesstabsize() for the macGuido van Rossum1992-03-271-0/+10
|
* lintGuido van Rossum1992-03-271-1/+2
|
* Lint fluffGuido van Rossum1992-03-271-4/+3
|
* Guess tab size on the Mac from tab resource.Guido van Rossum1992-03-251-0/+7
|
* Append a NEWLINE token at the end of a file.Guido van Rossum1992-03-041-0/+7
|
* Make tabs always 8 spaces wide -- it's more portable.Guido van Rossum1992-02-261-6/+1
|
* Added a header file.Guido van Rossum1992-01-191-0/+4
|
* Add warning XXX that 09.9 isn't accepted.Guido van Rossum1991-12-101-0/+2
|
* Added shift and mask ops.Guido van Rossum1991-10-241-2/+25
| | | | Allow numbers starting with a period.
* Added 2-char tokens and new versions of comparisonsGuido van Rossum1991-10-201-0/+47
|
* Implemented 2-character operators.Guido van Rossum1991-10-201-11/+20
|
* Added work-arounds for MPW 3.{1,2?} code generation bug.Guido van Rossum1991-09-101-0/+17
|
* Completely ignore lines with only a newline token on them, exceptGuido van Rossum1991-07-271-25/+47
| | | | wholly empty lines interactively.
* Reorganized somewhat to make it really work on Think C.Guido van Rossum1991-07-011-10/+5
| | | | Hope the best for MPW 3.
* Generalize to macintosh.Guido van Rossum1991-06-243-16/+26
|
* When printing an error message, don't choke if tok->buf is NULL.Guido van Rossum1991-06-071-10/+14
|
* Don't print the line number for syntax errors in string parsing.Guido van Rossum1991-06-031-0/+3
|
* Added recognition of 'l' or 'L' as long integer suffixGuido van Rossum1991-05-051-16/+23
|
* Add declaration of struct _node, for scoping reasons.Guido van Rossum1991-04-041-0/+2
|
* Added forward declarations.Guido van Rossum1991-04-031-0/+15
|
* Added copyright notice.Guido van Rossum1991-02-1919-0/+456
|
* Mac version now looks ahead in event queue instead of eating events.Guido van Rossum1991-01-161-10/+35
| | | | Much better!
* Changes for THINK C 4.0.Guido van Rossum1990-12-201-2/+2
|
* Changess for THINK C 4.0.Guido van Rossum1990-12-201-2/+2
|
* "Compiling" versionGuido van Rossum1990-12-2017-282/+329
|
* Set parse tree in parser data structure to NULL when returningGuido van Rossum1990-11-181-3/+4
| | | | a valid parse tree to caller, so caller must free the tree.
* Free parse tree when deleting parser.Guido van Rossum1990-11-181-2/+3
|