Files
wren/test/module/shared_import/b.wren
T
Bob Nystrom ea958deeef feat: add import keyword token and parser support with updated test syntax
Add TOKEN_IMPORT to the token enum and wire it into the keyword parser in readName(). Refactor string literal parsing by extracting stringConstant() helper that returns the constant index, allowing the new import parser to reuse it. Update all module test files to replace the old .import_() method calls with the new import "module" for Var syntax, and add new error test cases for missing string and missing for clause after import.
2015-02-15 00:46:00 +00:00

6 lines
93 B
Plaintext

// nontest
IO.print("b")
import "shared" for Shared
var B = "b " + Shared
IO.print("b done")