![]() |
ArkScript
A small, lisp-inspired, functional scripting language
|
#include <Import.hpp>
Public Member Functions | |
| std::string | toPackageString () const |
| std::string | packageToPath () const |
| bool | isBasic () const |
Check if we should import everything with a prefix, given a (import foo.bar.egg) | |
Public Attributes | |
| std::size_t | line |
| std::size_t | col |
| Position in the source file. | |
| std::string | prefix |
| The filename without the extension. | |
| std::vector< std::string > | package |
| Package with all the segments. | |
| bool | with_prefix = true |
| Import with prefix (import package) | |
| bool | is_glob = false |
| Import as glob (import package:*) | |
| std::vector< std::string > | symbols |
| List of symbols to import, can be empty if none provided. (import package :a :b) | |
Definition at line 12 of file Import.hpp.
|
inlinenodiscard |
Check if we should import everything with a prefix, given a (import foo.bar.egg)
Definition at line 86 of file Import.hpp.
|
inlinenodiscard |
Definition at line 69 of file Import.hpp.
Referenced by Ark::internal::ImportSolver::findFile().
|
inlinenodiscard |
Definition at line 54 of file Import.hpp.
Referenced by Ark::internal::ImportSolver::findFile(), Ark::internal::Parser::import_(), and Ark::internal::ImportSolver::process().
| std::size_t Ark::internal::Import::col |
Position in the source file.
Definition at line 14 of file Import.hpp.
Referenced by Ark::internal::Parser::import_().
| bool Ark::internal::Import::is_glob = false |
Import as glob (import package:*)
Definition at line 42 of file Import.hpp.
Referenced by Ark::internal::Parser::import_().
| std::size_t Ark::internal::Import::line |
Definition at line 14 of file Import.hpp.
Referenced by Ark::internal::Parser::import_().
| std::vector<std::string> Ark::internal::Import::package |
Package with all the segments.
Example: (import foo.bar) => {foo, bar} (import foo.bar.egg:*) => {foo, bar, egg} (import foo :a :b :c) => {foo}
Definition at line 31 of file Import.hpp.
Referenced by Ark::internal::Parser::import_().
| std::string Ark::internal::Import::prefix |
The filename without the extension.
Example: (import foo.bar) => bar (import foo.bar.egg:*) => egg (import foo :a :b :c) => foo
Definition at line 23 of file Import.hpp.
Referenced by Ark::internal::Parser::import_().
| std::vector<std::string> Ark::internal::Import::symbols |
List of symbols to import, can be empty if none provided. (import package :a :b)
Definition at line 48 of file Import.hpp.
Referenced by Ark::internal::Parser::import_().
| bool Ark::internal::Import::with_prefix = true |
Import with prefix (import package)
Definition at line 37 of file Import.hpp.
Referenced by Ark::internal::Parser::import_().