Questions Concepts
GitHub icon

Cue

Cue - Data notation

< >

Cue is a data notation created in 2018 by Marcel van Lohuizen.

Source code:
git clone https://github.com/cuelang/cue
#417on PLDB 5Years Old

Try now: Web

CUE has moved to https://github.com/cue-lang/cue


Example from the web:
#Spec: { kind: string name: { first: !="" // must be specified and non-empty middle?: !="" // optional, but must be non-empty when specified last: !="" } // The minimum must be strictly smaller than the maximum and vice versa. minimum?: int & <maximum maximum?: int & >minimum } // A spec is of type #Spec spec: #Spec spec: { knid: "Homo Sapiens" // error, misspelled field name: first: "Jane"

Language features

Feature Supported Token Example
Comments
// A comment
Line Comments //
// A comment
Semantic Indentation X

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Traffic · Traffic Today · Day 305 · feedback@pldb.com · Logout