Abstract Syntax Tree classes.
This file contains classes which encapsulate nodes in the AST. The base class is the Declaration class that encapsulates a named declaration. All names used are scoped tuples.
Also defined in module scope are the constants DEFAULT, PUBLIC, PROTECTED and PRIVATE.
| Classes Summary: | |
| AST Top-level Abstract Syntax Tree. [Source] | |
| Include Information about an include directive in a SourceFile. [Source] | |
| SourceFile The information about a file that the AST was generated from. [Source] | |
| Declaration Declaration base class. [Source] | |
| Macro A preprocessor macro. [Source] | |
| Forward Forward declaration [Source] | |
| Group Base class for groups which contain declarations. [Source] | |
| Scope Base class for scopes (named groups). [Source] | |
| Module Module class [Source] | |
| MetaModule Module Class that references all places where this Module occurs [Source] | |
| Inheritance Inheritance class. [Source] | |
| Class Class class. [Source] | |
| Typedef Typedef class. [Source] | |
| Enumerator Enumerator of an Enum. [Source] | |
| Enum Enum declaration. [Source] | |
| Variable Variable definition [Source] | |
| Const Constant declaration. [Source] | |
| Parameter Function Parameter [Source] | |
| Function Function declaration. [Source] | |
| Operation Operation class. [Source] | |
| CommentTag Information about a tag in a comment. [Source] | |
| Comment Information about a comment related to a declaration. [Source] | |
| Visitor Visitor for AST nodes [Source] | |
| Functions Summary: | |
| ccmp(a, b) Compares classes of two objects [Source] | |
| load(filename) Loads an AST object from the given filename [Source] | |
| load_deps(filename) Loads a dependencies object from the given filename. [Source] | |
| save(filename, ast) Saves an AST object to the given filename [Source] | |
| make_deps(ast) Creates the dependencies object to save in the .syn file from the given AST. [Source] | |
| Function Details: |
Loads a dependencies object from the given filename. The file will be an AST save file (usually *.syn), but this method only reads up to the dependencies object stored before the actual AST. The object returned is a list of (filename, timestamp) pairs.
Creates the dependencies object to save in the .syn file from the given AST. The dependencies are a list of (filename, timestamp) pairs, extracted from ast.files()