ParserContext

loreline.ParserContext (Class)

Instance Members

rootPath: String

The path of the root script being parsed


path: String

The path of the current script being parsed


imports: Map

Available tokens mapped by import path. All import paths should be either absolute or relative to rootPath


imported: Map

Mapping of paths that already have been imported (to prevent circular imports)


new(rootPath: String, path: String, imports: Map, ?imported: Null<Map>): Void
Name Type Default Description
rootPath String * The path of the root script being parsed
path String * The path of the current script being parsed
imports Map * Available tokens mapped by import path. All import paths should be either absolute or relative to rootPath
imported Null<Map> (optional) * Mapping of paths that already have been imported (to prevent circular imports)

Metadata

Name Parameters
:structInit -