blob: fa0deb793c42340836c0bc443f64ee4528b7e49c [file] [log] [blame] [view]
Marcel van Lohuizen75cb0032019-01-11 12:10:48 +01001# CUE Tutorial
2
3## About this tutorial
4
5This tutorial teaches the fundamentals of CUE.
6To try out the examples in the tutorial you can follow the
7[installation instructions](../../install.md)
8to get a working setup of CUE.
9
10Use the `cue eval` or `cue export` commands to evaluate an example.
11
12[Click here to start](json.md)
13
14## TOC
15
16- [JSON Sugar and other Goodness](json.md)
17 - [Quotes are Optional for Field Names](fieldname.md)
18 - [Commas are Optional after Fields](commas.md)
19 - [Commas are Still Required in Lists](commaslists.md)
20 - [Curly Braces](curly.md)
21 - [Folding of Single-Field Structs](fold.md)
22 - [Folding all Fields](foldany.md)
23 - [Comments](comments.md)
24 - [Number Literals](numberlit.md)
25 - [String Literals](stringlit.md)
26 - [Bytes](bytes.md)
Marcel van Lohuizenaf0932f2019-01-11 13:03:56 +010027- References and Visibility
Marcel van Lohuizen75cb0032019-01-11 12:10:48 +010028 - [References and Scopes](scopes.md)
29 - [Accessing Fields](selectors.md)
30 - [Aliases](aliases.md)
31 - [Emit Values](emit.md)
32 - [Hidden Values](hidden.md)
33- Types and Values
34 - [Duplicate Fields](duplicates.md)
35 - [Bottom / Error](bottom.md)
36 - [Basic Types](types.md)
Marcel van Lohuizenaf0932f2019-01-11 13:03:56 +010037 - [Order is Irrelevant](unification.md)
Marcel van Lohuizen75cb0032019-01-11 12:10:48 +010038 - [Disjunctions](disjunctions.md)
Marcel van Lohuizenaf0932f2019-01-11 13:03:56 +010039 - [Default Values](defaults.md)
Marcel van Lohuizen75cb0032019-01-11 12:10:48 +010040 - [Disjunctions of Structs](disjstruct.md)
41 - [Numbers](numbers.md)
42 - [Ranges](ranges.md)
43 - [Predefined Ranges](rangedef.md)
44 - [Lists](lists.md)
45- [Modules, Packages, and Instances](instances.md)
46 - [Packages](packages.md)
47 - [Imports](imports.md)
48- Expressions
49 - [Operators](operators.md)
50 - [Interpolation](interpolation.md)
51 - [Interpolation in Field Names](interpolfield.md)
52 - [List Comprehensions](listcomp.md)
53 - [Field Comprehensions](fieldcomp.md)
54 - [Conditional Fields](conditional.md)
55 - [Null or Error coalescing](coalescing.md)
56 <!-- - Conversions -->
57 <!-- - Functions (simulating) -->