Learn Abla
This path is for someone who has programmed before and wants to write their first Abla program. Read the chapters in order; each introduces one small idea and points to the reference when you need more detail.
This tour follows the development compiler. In particular, v0.2.65 can run the basic examples and the JSON buffer example. For the newer project and package commands, regex/XML/SQL literals, REPL loading and debugger variables, use a current source build as described in the installation chapter.
- Install and choose your compiler
- Hello, Abla
- Values and types
- Functions and control flow
- Classes and interfaces
- Ownership and resources
- Handling expected failures
- Arrays and maps
- Running code during compilation
- Sub-languages for regex, JSON, XML and SQL
- Modules, packages and the lockfile
- Tasks and threads
- Building for targets
- Trying ideas in the REPL
- Debug an Abla program
Each Abla block links to a real source file. The suite compiles and runs the examples and checks the // output: comments. tools/test-tour.sh checks that the displayed blocks match those files byte for byte, including the helper module, and checks the REPL session. Shell installation steps depend on your host and are setup instructions, not Abla examples. Run examples from a directory you own; repository commands below assume the repository root.
For an API, start at the stdlib module index, then follow its curated module pages. The generated declaration reference, when you build it with build/ablac doc, lives in build/docs/index.md; it is separate from these checked-in explanations. The language reference describes the full rules. The existing compact guide offers a single-page refresher.
To check the tour while editing, run tools/test-tour.sh build/ablac, then tools/test-doc-examples.sh build/ablac docs/tour/*.md inside the development shell. Both checks are part of the normal suite.
Built from compiler source ba5d6b7d. Examples and generated signatures follow that source revision.