Python Core Types¶
Detailed documentation of core types in the Grammar School Python implementation.
AST Types¶
Value¶
Represents a value in the AST (number, string, identifier, bool).
Example:
Arg¶
Represents a named argument to a call.
Example:
Call¶
Represents a single function call with named arguments.
Example:
CallChain¶
Represents a chain of calls connected by dots (method chaining).
Example:
Method Decorators¶
@method¶
Decorator to mark a method as a DSL handler. Methods contain their implementation directly.
Note: The Action and Runtime types still exist internally for the two-layer architecture, but users don't need to interact with them directly when using @method.