Dasel
v3
v3
  • Getting started
    • Introduction
    • Installation
    • Concepts
      • Expressions
      • Branches
  • Syntax
    • Whitespace
    • Types/Literals
    • String concatenation
    • Arrays/slices
    • Objects/maps
    • Conditionals
    • Spread
    • Coalesce
  • Input/Output
    • Read/Write formats
    • Stdin
    • Stdout
    • Variables
    • Read/Writer flags
  • Functions
    • add
    • min
    • max
    • reverse
    • toString
    • toInt
    • toFloat
    • typeOf
    • map
    • filter
    • sortBy
    • parse
    • base64e
    • base64d
Powered by GitBook
On this page
  • Integers
  • Floats
  • Booleans
  • Strings
  1. Syntax

Types/Literals

Integers

Integers are represented as whole numbers. E.g.

  • 1,

  • 5234

  • -530

Note: If -530 is detected as a bad binary expression (nothing subtract 530) it can be grouped, e.g. (-530).

Floats

Numbers are interpreted as floats when they contain a decimal place . or are followed with an f. E.g.

  • 1.1

  • 23.45

  • 123f

Booleans

Bools are matched by a case insentive match on true or false. E.g.

  • true

  • True

  • TRUE

  • false

  • False

  • FALSE

Strings

Strings are interpreted as a sequence of characters surrounded by quotes, both single and double. E.g.

  • "I am a string"

  • 'I am a string'

  • "I am a string with an escaped \" inside of me"

PreviousWhitespaceNextString concatenation

Last updated 7 months ago