Marcel van Lohuizen | 75cb003 | 2019-01-11 12:10:48 +0100 | [diff] [blame] | 1 | # CUE Tutorial |
| 2 | |
| 3 | ## About this tutorial |
| 4 | |
| 5 | This tutorial teaches the fundamentals of CUE. |
| 6 | To try out the examples in the tutorial you can follow the |
| 7 | [installation instructions](../../install.md) |
| 8 | to get a working setup of CUE. |
| 9 | |
| 10 | Use 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 Lohuizen | af0932f | 2019-01-11 13:03:56 +0100 | [diff] [blame] | 27 | - References and Visibility |
Marcel van Lohuizen | 75cb003 | 2019-01-11 12:10:48 +0100 | [diff] [blame] | 28 | - [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 Lohuizen | af0932f | 2019-01-11 13:03:56 +0100 | [diff] [blame] | 37 | - [Order is Irrelevant](unification.md) |
Marcel van Lohuizen | 75cb003 | 2019-01-11 12:10:48 +0100 | [diff] [blame] | 38 | - [Disjunctions](disjunctions.md) |
Marcel van Lohuizen | af0932f | 2019-01-11 13:03:56 +0100 | [diff] [blame] | 39 | - [Default Values](defaults.md) |
Marcel van Lohuizen | 75cb003 | 2019-01-11 12:10:48 +0100 | [diff] [blame] | 40 | - [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) --> |