summaryrefslogtreecommitdiff
path: root/Parser/parser.c
AgeCommit message (Collapse)AuthorLines
2002-03-22Disable the parser hacks that allowed the "yield" keyword to be enabledNeil Schemenauer-0/+10
by a future statement.
2001-12-04The parser doesn't need its own implementation of assert, and having itsTim Peters-1/+1
own interfered with including Python.h. Remove Python's assert.h.
2001-07-19Fis SF bug #442647: not all forms of legal future statements wereGuido van Rossum-3/+9
parsed correctly. Now they are.
2001-07-15Preliminary support for "from __future__ import generators" to enableGuido van Rossum-3/+35
the yield statement. I figure we have to have this in before I can release 2.2a1 on Wednesday. Note: test_generators is currently broken, I'm counting on Tim to fix this.
2000-10-02Fix a bug in stack overflow error handling. This fixes half of BugGuido van Rossum-1/+1
#115555. The error from s_push() on stack overflow was -1, which was passed through unchanged by push(), but not tested for by push()'s caller -- which only expected positive error codes. Fixed by changing s_push() to return E_NOMEM on stack overflow. (Not quite the proper error code either, but I can't be bothered adding a new E_STACKOVERFLOW error code in all the right places.)
2000-09-01REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum-9/+0
This should match the situation in the 1.6b1 tree.
2000-07-22Mass ANSIfication.Thomas Wouters-53/+13
Work around intrcheck.c's desire to pass 'PyErr_CheckSignals' to 'Py_AddPendingCall' by providing a (static) wrapper function that has the right number of arguments.
2000-07-11Create two new exceptions: IndentationError and TabError. These areFred Drake-1/+11
used for indentation related errors. This patch includes Ping's improvements for indentation-related error messages. Closes SourceForge patches #100734 and #100856.
2000-07-09Nuke all remaining occurrences of Py_PROTO and Py_FPROTO.Tim Peters-6/+6
2000-06-30Change copyright notice - 2nd try.Guido van Rossum-6/+0
2000-06-30Change copyright notice.Guido van Rossum-21/+6
2000-06-20Add new parser error code, E_OVERFLOW. This error is returned whenJeremy Hylton-14/+15
the number of children of a node exceeds the max possible value for the short that is used to count them. The Python runtime converts this parser error into the SyntaxError "expression too long."
1997-04-29Another directory quickly renamed.Guido van Rossum-28/+29
1996-12-30Rename DEBUG macro to Py_DEBUGGuido van Rossum-5/+5
1996-10-25New permission notice, includes CNRI.Guido van Rossum-12/+19
1995-01-04Added 1995 to copyright message.Guido van Rossum-2/+2
1994-12-30Parser/tokenizer.c (tok_nextc): zap tok->buf after freeing;Guido van Rossum-4/+2
rest: abort() -> fatal(); small things
1994-08-30Merge back to main trunkGuido van Rossum-1/+1
1993-03-29* Changed all copyright messages to include 1993.Guido van Rossum-2/+2
* 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
1992-09-03Correct debug printing codeGuido van Rossum-1/+1
1992-04-05Copyright for 1992 addedGuido van Rossum-1/+1
1991-02-19Added copyright notice.Guido van Rossum-0/+24
1990-12-20"Compiling" versionGuido van Rossum-16/+18
1990-11-18Free parse tree when deleting parser.Guido van Rossum-2/+3
1990-10-14Initial revisionGuido van Rossum-0/+396