Project Structure
Directory Layout
Section titled “Directory Layout”When you run vctx init, a standard project structure is created.
File Extensions
Section titled “File Extensions”Source files use the .vctx extension.
Packages and Imports
Section titled “Packages and Imports”vctx uses a namespacing system similar to other modern programming languages. You can import other packages to use their components or functions.
Import Syntax
Section titled “Import Syntax”// Import a packageimport examples.counter3
// Import a package with an aliasimport examples.counter4 as c4Identifier Resolution
Section titled “Identifier Resolution”Base Identifier: counter
Field Access: bus.mosi
Qualified Name: examples.counter3.Count
You can use the CLI tools to inspect imports and symbols:
# Show what a file importspython vctx-cli.py imports examples/blinky.vctx
# Show all symbolspython vctx-cli.py project examples/blinky.vctxNeed an offline copy? Download Full Manual (.md)