Re: Compiler Python



Someone knows since as I can obtain the information detailed about the
compiler of Python? (Table of tokens, lists of productions of the
syntactic one , semantic restrictions...)

The EBNF grammar is in Grammar/Grammar; this also implies the list
of tokens. Another list of tokens in Include/token.h. The semantic
restrictions are mostly implemented as SyntaxError. These are
raised under various circumstances - search the code for SyntaxError,
for details.

Regards,
Martin
.



Relevant Pages

  • Re: Table compression
    ... that the reduce action that's left is the one that has the most entries ... If no tokens match in the list just created, ... deferred until you get in a state that doesn't have a default reduction. ... If we create our lists for each state as described above, ...
    (comp.compilers)
  • Re: expandable test if token-lists consist of the same set of tokens?
    ... (where the three tokens are a catcode 12 left-brace character, ... enclosed into braces. ... These lists are "\detokenize-equal". ... I want an undefined-error if it comes to the "attempt" of ...
    (comp.text.tex)
  • Re: Constants for catch return values?
    ... Where the idea of a [tokenize] might come in handy, ... Especially if it has a few "built in" lists ... of tokens, ... But I think the use of coolness as ...
    (comp.lang.tcl)
  • CTAN has a new package: ted
    ... Just like sed is a stream editor, ted is a token list editor. ... lists. ... The ted package is designed to work well even if strange tokens (that is, ...
    (comp.text.tex)
  • Re: Why I dont believe in static typing
    ... > The outputs of a tokenizer should all be Tokens, ... > work usefully with these lists. ... > tokenizer might return the actual number that it parsed). ... > accidentally passed to the token processor. ...
    (comp.lang.lisp)