A Quick Introduction to Virgil

This page is a basic introduction to programming in Virgil and gives an overview of the language, its syntax, and its structures. After reading this introduction, you should have a basic understanding of how to program in Virgil.

Prerequisites

Before beginning this tutorial, complete the following steps:

Outline

  1. The Interpreter - get started with the built-in Virgil interpreter.
  2. Hello World - take a look at a simple program.
  3. Statements - basics of statement syntax.
  4. Expressions - basics of expression syntax.
  5. Primitives - the three basic primitive types.
  6. Raw Types - support for bit-level quantities and operations.
  7. Arrays - syntax and semantics of arrays.
  8. Methods - defining and calling methods.
  9. Components - encapsulating functionality in components.
  10. Classes - defining and using classes and objects.
  11. Delegates - functional-style programming using delegates.
  12. Initialization - initializing and building your data structures.