Skip to content

Syntax Summary

Troy Gerwien edited this page Nov 7, 2021 · 2 revisions

Primitive values

/**************** Bytes ****************/
#00 // always two digits
#ff // always hexadecimal
#FF // case-insensitive
// Q: concrete-only?

/**************** Numbers ****************/
1
3.14
-33
1.045e-18
// Q: abstract-only? byte-encodings can vary, eg BE, LE, IEEE754, etc

/**************** Booleans ****************/
true
false
// NB: abstract-only

/**************** Null ****************/
null
// NB: abstract-only


TODO: Strings...
- really a composite value - ie an expression
  - what is the indivisible unit? a character? have syntax for that?
- could be abstract, concrete, or transcoded
- byte-encodings can vary, eg utf8, utf16, etc

Composite values

// Strings
// Records
// Lists

'Control' Constructs

// Sequence
// Selection
// Repetition
Clone this wiki locally