• About
  • Documentation
  • Github
  • Jam v0.0.1 Documentation
    • The Jam Language Reference
      • 1. Comments
      • 2. Instructions
      • 3. Values
      • 4. Identifiers
      • 5. Literals
        • 5.1. Integers
        • 5.2. Floats
        • 5.3. Strings
        • 5.4. Symbols
        • 5.5. Booleans
        • 5.6. Null
      • 6. Operations
      • 7. Variables
      • 8. Assignments
      • 9. Flow Control
      • 10. Methods
      • 11. Lambdas
      • 12. Types
      • 13. Type Casting
      • 14. Arrays
      • 15. Associative Arrays
      • 16. Enumerations
      • 17. Modifiers
      • 18. Imports
      • 19. Traits
      • 20. Dependent Types
    • Library Reference
    • The Jam Tutorial
    • Jam Roadmap

5. Literals

A literal is a constant value described by the direct insertion of it’s data by code.

There are multiple different types of literals, each with their own type and syntax.

  • 5.1. Integers
  • 5.2. Floats
  • 5.3. Strings
  • 5.4. Symbols
  • 5.5. Booleans
  • 5.6. Null

5.7. Syntax

Literal ::=  Integer | Float | String | Symbol | Boolean | Null

Back to top

Source