Starting out the import statement

This commit is contained in:
Fábio Santos
2016-01-29 20:47:49 +00:00
committed by Richard van Velzen
parent 6780d0906c
commit 0465bd270d
4 changed files with 39 additions and 2 deletions

View File

@@ -702,6 +702,13 @@ var AST_Const = DEFNODE("Const", null, {
$documentation: "A `const` statement"
}, AST_Definitions);
var AST_Import = DEFNODE("Import", "module_name", {
$documentation: "An `import` statement",
$propdoc: {
module_name: "[AST_String] String literal describing where this module came from",
}
});
var AST_VarDef = DEFNODE("VarDef", "name value", {
$documentation: "A variable declaration; only appears in a AST_Definitions node",
$propdoc: {