summaryrefslogtreecommitdiff
path: root/Modules/parsermodule.c
AgeCommit message (Collapse)AuthorLines
2001-08-15Use the abstract object interfaces when digging around in module objectsFred Drake-19/+19
instead of directly manipulating the underlying dictionary.
2001-07-19Elaborate a comment.Fred Drake-1/+4
2001-07-17The syntax trees handled by this module are not "abstract," so take theFred Drake-132/+136
"A" out of the internal abbreviations. For published functions with "ast" in their names, make alternate offerings using just "st".
2001-07-17Add support for yield statements.Fred Drake-1/+17
(Should be merged with descr branch.)
2001-06-23Properly use &&. Closes bug #434989.Martin v. Löwis-1/+1
2001-01-07Fix problems with validation of import statement parse trees.Fred Drake-5/+24
This closes SF bug #127271.
2000-12-11validate_varargslist(): Fix two bugs in this function, one that affectedFred Drake-11/+20
it when *args and/or **kw are used, and one when they are not. This closes bug #125375: "parser.tuple2ast() failure on valid parse tree".
2000-10-24Ka-Ping Yee <ping@lfw.org>:Fred Drake-21/+21
Changes to error messages to increase consistency & clarity. This (mostly) closes SourceForge patch #101839.
2000-09-12Simplify some of the code. Use PyErr_Format() instead of sprintf(), etc.Fred Drake-186/+122
Reduces lines of code and compiled object size.
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-09-01Do the absolute minimal amount of modifications to eradicateBarry Warsaw-5/+4
Py_FatalError() from module initialization functions. The importing mechanism already checks for PyErr_Occurred() after module importation and it Does The Right Thing. Unfortunately, the following either were not compiled or tested by the regression suite, due to issues with my development platform: almodule.c cdmodule.c mpzmodule.c puremodule.c timingmodule.c
2000-08-26Try to supply a prototype for the module init function but avoidTim Peters-1/+1
Windows "inconsistent linkage" warnings at the same time. I agree with Mark Hammond that the whole DL_IMPORT/DL_EXPORT macro system needs an overhaul; this is just an expedient hack until then.
2000-08-25Update the parser module to support augmented assignment.Fred Drake-6/+30
Add some test cases.
2000-08-23validate_listmaker(): Revise to match Skip's latest changes to theFred Drake-6/+12
Grammar file. This makes the test suite pass once again.
2000-08-22Nuked unused variable.Tim Peters-1/+0
2000-08-21Update to reflect recent grammar changes (list comprehensions, extendedFred Drake-177/+362
print statement), and fix up the extended call syntax support. Minor stylistic cleanups.
2000-07-24ANSIfy a bit more.Thomas Wouters-1/+1
2000-07-22Even more ANSIfication: fix as many function pointers and declarations asThomas Wouters-1/+1
possible.
2000-07-16Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters-3/+3
comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
2000-07-12replace PyXXX_Length calls with PyXXX_Size callsJeremy Hylton-5/+5
2000-07-10ANSI-fyingPeter Schneider-Kamp-12/+4
added excplicit node * parameter to termvalid argument in validate_two_chain_ops of parsermodule.c (as proposed by fred)
2000-07-09Remove use of HAVE_OLD_CPP to support non-ANSI preprocessors.Fred Drake-4/+0
2000-07-04Remove warning about local variable possibly being using uninitialized;Fred Drake-1/+1
noted by Marc-Andre Lemburg <mal@lemburg.com>.
2000-07-03Andrew Kuchling <akuchlin@mems-exchange.org>:Fred Drake-1/+1
Typo in string literal: execpt --> except
2000-06-30Change copyright notice - 2nd try.Guido van Rossum-6/+0
2000-06-30Change copyright notice.Guido van Rossum-21/+6
2000-05-03Vladimir Marangozov's long-awaited malloc restructuring.Guido van Rossum-4/+4
For more comments, read the patches@python.org archives. For documentation read the comments in mymalloc.h and objimpl.h. (This is not exactly what Vladimir posted to the patches list; I've made a few changes, and Vladimir sent me a fix in private email for a problem that only occurs in debug mode. I'm also holding back on his change to main.c, which seems unnecessary to me.)
2000-04-25validate_arglist(): Re-written to reflect extended call syntax.Fred Drake-3/+80
validate_numnodes(): Added comment to explain the sometimes idiomatic usage pattern.
2000-04-19ANSI-fy & de-tabify the source.Fred Drake-1481/+1293
(4-space indents already used.)
2000-02-21What used to be tp_xxx4 is now tp_flags; set it to Py_TPFLAGS_DEFAULT.Fred Drake-2/+1
1999-09-20parser__pickler(): Don't drop the third argument toFred Drake-5/+11
parser_ast2tuple(). Create an temporary empty dictionary to use. Bug reported by Mark Favas <m.favas@per.dem.csiro.au>. Fix a couple of comments.
1999-09-09Added keyword parameter support to all public interfaces; keywordFred Drake-62/+76
names match the documentation. Removed broken code that supports the __methods__ attribute on ast objects; the right magic was added to Py_FindMethod() since this was originally written. <ast-object>.__methods__ now works, so dir() and rlcompleter are happy.
1999-02-17When the parameter to PyInt_AsLong() has already been checked withFred Drake-2/+2
PyInt_Check(), use PyInt_AS_LONG() instead (two places).
1998-12-04Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum-1/+1
on BeOS or Windows.
1998-08-04parser__pickler(): Use Py_DECREF() when reference is known to be non-NULL.Fred Drake-1/+1
1998-05-29Sorry, the initializer for ob_type must really be NULL,Guido van Rossum-1/+1
else the damn thing won't compile on Windows :-(
1998-05-11parser_compare_nodes(): Corrected a minor type error; eliminate one GCCFred Drake-1/+1
warning (at least under Linux).
1998-04-29Made lint a bit happier.Fred Drake-54/+80
Fixed a memory leak in an error handler.
1998-04-28Add a declaration for strdup() for the Mac.Guido van Rossum-0/+3
(Jack)
1998-04-21In method & function tables, added a cast for the function pointers to keepFred Drake-16/+21
compilers happy. initparser(): Remove unused variable. gcc -Wall is now happy.
1998-04-13The documentation threatened it would happen -- the functions that shouldFred Drake-35/+97
have been methods now are! Still available as functions for compatibility.
1998-04-13Added support for pickling ast objects.Fred Drake-13/+64
1998-04-10Make new gcc -Wall happyGuido van Rossum-2/+4
1998-04-10Support raise with no parameters.Fred Drake-3/+4
1997-10-09Remove requirement for strdup() since it causes so many troubles for too manyFred Drake-4/+4
platforms. Argh!
1997-10-08Put back the extern declaration for strdup(), between #ifndef MS_WINDOWS.Guido van Rossum-0/+3
This should make everybody happy, especially since we don't say what the argument type is (there is disagreement on that, too :-( ).
1997-10-07initparser(): Use PyErr_NewException() to create the exception.Fred Drake-1/+1
1997-09-30Removed extern declaration of strdup(). Doesn't appear to be important andFred Drake-10/+0
causes ugly noises under Windows.
1997-05-23Add doc string to type object.Fred Drake-1/+12
1997-04-02Support assert stmt.Guido van Rossum-1/+32