This repository has been archived by the owner on Jun 12, 2023. It is now read-only.
import
statements
#29
Labels
A-cli
Area: command line interface
A-codegen
Area: the code generator backend
A-syntax
Area: the parser and scanner
A-typechecker
Area: the type checker
Milestone
Syntax
The compiler searches the following paths for the module with the given name, in order:
Std
Std.amp
Std/Main.amp
Local modules can be imported using the following syntax:
The compiler searches the following paths for the module with the given name, in order:
./MyModule
./MyModule.amp
./MyModule/Main.amp
Command Line
This would also introduce the
-I
compiler flag, which would add a path to search for modules in:Given the above example, the compiler would search the following paths for the
Std
module (in order):runtime/Std
runtime/Std.amp
runtime/Std/Main.amp
The text was updated successfully, but these errors were encountered: