2018-11-17 13:01:37 -06:00
|
|
|
+++
|
|
|
|
title = "The UCG Language Reference"
|
|
|
|
slug = "reference"
|
|
|
|
weight = 2
|
|
|
|
sort_by = "weight"
|
|
|
|
in_search_index = true
|
|
|
|
+++
|
|
|
|
An Overview
|
|
|
|
-----------
|
|
|
|
|
|
|
|
UCG is a language specialized for generating configurations. It does not have classes,
|
|
|
|
inheritance, closures, or a full type system. All values are immutable once bound to
|
|
|
|
a name. A valid UCG file is composed of a series of statements. Statements can be
|
|
|
|
an expression, introduce named bindings, or create different outputs. All statements
|
|
|
|
must be terminiated by a semicolon.
|
|
|
|
|
2019-01-05 09:56:07 -06:00
|
|
|
Some words are reserved in UCG and can not be used as a named binding.
|
2018-11-17 13:01:37 -06:00
|
|
|
|
|
|
|
|
|
|
|
* self
|
|
|
|
* assert
|
|
|
|
* true
|
|
|
|
* false
|
|
|
|
* let
|
|
|
|
* import
|
|
|
|
* as
|
|
|
|
* select
|
|
|
|
* macro
|
2018-11-23 12:50:47 -06:00
|
|
|
* module
|
2018-11-17 13:01:37 -06:00
|
|
|
* env
|
|
|
|
* map
|
|
|
|
* filter
|
|
|
|
* NULL
|
|
|
|
* out
|
|
|
|
|
|
|
|
Next: <a href="types">Types</a>
|