Skip to content

Commit 95cfa59

Browse files
committed
Refactor course-definition.yml token definitions and documentation
1 parent d066d0e commit 95cfa59

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

course-definition.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,10 @@ stages:
177177
- Examples: `VAR`, `IDENTIFIER`, `STRING`, `EOF` etc.
178178
- `<lexeme>`: The actual sequence of characters that formed the token.
179179
- Examples: `var`, `breakfast`, `"bagels"` etc.
180-
- This is an empty string for the `EOF` token.
180+
- For an `EOF` token, the lexeme is an empty string.
181181
- `<literal>`: The literal value of the token.
182-
- For most tokens this is `null`, it only holds a value for `STRING` / `NUMBER` tokens.
182+
- For most tokens this is `null`.
183+
- For `STRING`/`NUMBER` tokens, it holds the value of the string/number.
183184
184185
The `EOF` token is a special token that represents the end of the file. All calls to `tokenize` will include an `EOF` token at the end.
185186

0 commit comments

Comments
 (0)