3.1 Sage Preparsing

The following is a list of files relevant to preparsing through which control flows when Sage is run:

  1. SAGE_ROOT/sage-sage,

  2. SAGE_ROOT/sage-preparse,

  3. SAGE_ROOT/devel/sage/sage/misc/preparser.py

The file preparser.py is contains the Sage preparser code and the following are some notes from the aforementioned file

Consult preparser.py for details about Sage preparsing, examples involving raw literals, etc.

When foo.sage is loaded in a sage session, a preparsed version of foo.sage is created titled foo.py. The beginning of foo.py states: This file was *autogenerated* from the file foo.sage.

See About this document... for information on suggesting changes.