summaryrefslogtreecommitdiffstats
path: root/Parser/tokenizer.c
Commit message (Collapse)AuthorAgeFilesLines
* Use Py_FatalError instead of abort.Martin v. Löwis2002-08-071-2/+3
|
* Fix PEP 263 code --without-unicode. Fixes #591943.Martin v. Löwis2002-08-071-0/+18
|
* Added a cast to shut up a compiler warning.Jack Jansen2002-08-051-1/+1
|
* Add 1 to lineno in deprecation warning. Fixes #590888.Martin v. Löwis2002-08-051-1/+3
|
* Make pgen compile with pydebug. Duplicate normalized names, as it mayMartin v. Löwis2002-08-041-2/+6
| | | | be longer than the old string.
* Group statements properly.Martin v. Löwis2002-08-041-6/+12
|
* Repaired a fatal compiler error in the debug build: it's not clear whatTim Peters2002-08-041-1/+1
| | | | this was trying to assert, but the name it referenced didn't exist.
* Squash compiler wng about signed-vs-unsigned mismatch.Tim Peters2002-08-041-1/+1
|
* Patch #534304: Implement phase 1 of PEP 263.Martin v. Löwis2002-08-041-8/+440
|
* Mass checkin of universal newline support.Jack Jansen2002-04-141-4/+5
| | | | | | | | Highlights: import and friends will understand any of \r, \n and \r\n as end of line. Python file input will do the same if you use mode 'U'. Everything can be disabled by configuring with --without-universal-newlines. See PEP278 for details.
* SF patch #455966: Allow leading 0 in float/imag literals.Tim Peters2001-08-301-3/+22
| | | | Consequences for Jython still unknown (but raised on Jython-Dev).
* SF bug [#455775] float parsing discrepancy.Tim Peters2001-08-271-5/+8
| | | | PyTokenizer_Get: error if exponent contains no digits (3e, 2.0e+, ...).
* Implement PEP 238 in its (almost) full glory.Guido van Rossum2001-08-081-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | This introduces: - A new operator // that means floor division (the kind of division where 1/2 is 0). - The "future division" statement ("from __future__ import division) which changes the meaning of the / operator to implement "true division" (where 1/2 is 0.5). - New overloadable operators __truediv__ and __floordiv__. - New slots in the PyNumberMethods struct for true and floor division, new abstract APIs for them, new opcodes, and so on. I emphasize that without the future division statement, the semantics of / will remain unchanged until Python 3.0. Not yet implemented are warnings (default off) when / is used with int or long arguments. This has been on display since 7/31 as SF patch #443474. Flames to /dev/null.
* SF but #417587: compiler warnings compiling 2.1.Tim Peters2001-04-211-3/+0
| | | | Repaired *some* of the SGI compiler warnings Sjoerd Mullender reported.
* REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum2000-09-011-9/+0
| | | | This should match the situation in the 1.6b1 tree.
* Support for three-token characters (**=, >>=, <<=) which was written byThomas Wouters2000-08-241-0/+94
| | | | | Michael Hudson, and support in general for the augmented assignment syntax. The graminit.c patch is large!
* Mass ANSIfication.Thomas Wouters2000-07-221-25/+12
| | | | | | 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.
* Create two new exceptions: IndentationError and TabError. These areFred Drake2000-07-111-9/+5
| | | | | | | used for indentation related errors. This patch includes Ping's improvements for indentation-related error messages. Closes SourceForge patches #100734 and #100856.
* Nuke all remaining occurrences of Py_PROTO and Py_FPROTO.Tim Peters2000-07-091-4/+4
|
* Change copyright notice - 2nd try.Guido van Rossum2000-06-301-6/+0
|
* Change copyright notice.Guido van Rossum2000-06-301-22/+7
|
* Trent Mick: familiar simple Win64 patchesGuido van Rossum2000-06-281-3/+3
|
* Vladimir Marangozov's long-awaited malloc restructuring.Guido van Rossum2000-05-031-6/+7
| | | | | | | | | | 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.)
* Only write message about changed Tab size with -v.Guido van Rossum2000-04-031-1/+2
|
* Fix by Eric Raymond: make the code that looks for various bits ofGuido van Rossum2000-03-311-15/+30
| | | | | tab-setting magic much smarter, more correct, and more easily extensible.
* Marc-Andre Lemburg: add new string token types u"..." and ur"..."Guido van Rossum2000-03-101-0/+10
| | | | (Unicode and raw Unicode).
* One more fprintf bites the dist -- use PySys_WriteStderrGuido van Rossum1998-12-041-1/+1
|
* Replace all calls to fprintf(stderr, ...) with PySys_WriteStderr(...).Guido van Rossum1998-08-251-5/+6
|
* Add checking for inconsistent tab usageGuido van Rossum1998-04-091-3/+43
|
* Swap two statements in the dedent check loop. This makes absolutelyGuido van Rossum1998-02-161-1/+1
| | | | | no difference, but avoids triggering an optimizer bug in the AIX compiler where the loop unrolling does the wrong thing...
* Fixed the bug in searching for triple quotes -- change the 'quote2'Guido van Rossum1998-02-161-2/+2
| | | | | variable from a pointer to an index, so a realloc() of the buffer won't disturb it. Problem found by Vladimir Marangozov.
* tok_nextc() should return unsigned characters, to avoid mistakingGuido van Rossum1998-01-191-2/+10
| | | | '\377' for EOF.
* Another directory quickly renamed.Guido van Rossum1997-04-291-25/+27
|
* Now that the string-sig has settled on r"obin" strings, restrict theGuido van Rossum1997-04-251-3/+7
| | | | <letter><string> notation to 'r' and 'R'.
* (Jack:) On the Mac, give syntax error on \r.Guido van Rossum1997-04-111-0/+11
|
* Support for alternative string quotes (a"xx", b"xx", c"xx", ...).Guido van Rossum1997-04-061-4/+9
|
* Rename DEBUG macro to Py_DEBUGGuido van Rossum1996-12-301-1/+1
|
* Make gcc -Wall happyGuido van Rossum1996-12-021-1/+0
|
* New permission notice, includes CNRI.Guido van Rossum1996-10-251-13/+20
|
* use only j for imaginary constantsGuido van Rossum1996-01-261-2/+2
|
* changes for pow(**) and complexGuido van Rossum1996-01-121-1/+17
|
* fix bogus resize length in nextcGuido van Rossum1995-09-211-1/+1
|
* ignore control-l in whitespaceGuido van Rossum1995-07-071-1/+3
|
* replace "\r\n" with "\n" at line end (Jim Ahlstrom)Guido van Rossum1995-06-141-0/+8
|
* fix loop on unterminated triple quotesGuido van Rossum1995-01-171-1/+6
|
* Added 1995 to copyright message.Guido van Rossum1995-01-041-2/+2
|
* Parser/tokenizer.c (tok_nextc): zap tok->buf after freeing;Guido van Rossum1994-12-301-4/+3
| | | | rest: abort() -> fatal(); small things
* * Parser/tokenizer.c (tok_nextc): count line numbers when parsingGuido van Rossum1994-09-191-7/+21
| | | | strings
* * Parser/tokenizer.c: backup over illegal newline in stringGuido van Rossum1994-08-291-92/+119
| | | | literal (for "completeness" test)
* Changes to accept double-quoted strings on input.Guido van Rossum1993-10-261-1/+27
|