Skip to content

Project Structure

When you run vctx init, a standard project structure is created.

Source files use the .vctx extension.

vctx uses a namespacing system similar to other modern programming languages. You can import other packages to use their components or functions.

// Import a package
import examples.counter3
// Import a package with an alias
import examples.counter4 as c4

Base Identifier: counter
Field Access: bus.mosi
Qualified Name: examples.counter3.Count

You can use the CLI tools to inspect imports and symbols:

Terminal window
# Show what a file imports
python vctx-cli.py imports examples/blinky.vctx
# Show all symbols
python vctx-cli.py project examples/blinky.vctx