Skip to content

Commit

Permalink
doc/ref/spec.md: a few fixes
Browse files Browse the repository at this point in the history
- boolean_lit -> bool_lit
- removed reference to top_lit
- added bottom_lit

Fixes #773
Fixes #777

Change-Id: I40e103d5fdd73f1ef99c89a10333b6abb5aad6d3
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/8741
Reviewed-by: Paul Jolly <paul@myitcv.org.uk>
  • Loading branch information
mpvl committed Feb 16, 2021
1 parent e12e26e commit 17ea1d5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions doc/ref/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,10 @@ Any evaluation error is represented as bottom.
Implementations may associate error strings with different instances of bottom;
logically they all remain the same value.

```
bottom_lit = "_|_" .
```


### Top

Expand All @@ -859,7 +863,7 @@ It has only one parent, top, and one child, bottom.
It is unordered with respect to any other value.

```
null_lit = "null"
null_lit = "null" .
```

```
Expand All @@ -877,7 +881,7 @@ The predeclared boolean type is `bool`; it is a defined type and a separate
element in the lattice.

```
boolean_lit = "true" | "false"
bool_lit = "true" | "false" .
```

```
Expand Down Expand Up @@ -1623,7 +1627,7 @@ The length of an open list is the its number of elements as a lower bound
and an unlimited number of elements as its upper bound.

```
ListLit = "[" [ ElementList [ "," [ Ellipsis ] ] [ "," ] "]" .
ListLit = "[" [ ElementList [ "," [ Ellipsis ] ] [ "," ] ] "]" .
ElementList = Embedding { "," Embedding } .
```

Expand Down Expand Up @@ -1853,7 +1857,7 @@ field, alias, or let declaration, or a parenthesized expression.
Operand = Literal | OperandName | "(" Expression ")" .
Literal = BasicLit | ListLit | StructLit .
BasicLit = int_lit | float_lit | string_lit |
null_lit | bool_lit | bottom_lit | top_lit .
null_lit | bool_lit | bottom_lit .
OperandName = identifier | QualifiedIdent .
```

Expand Down

0 comments on commit 17ea1d5

Please sign in to comment.