aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2021-05-12 21:31:33 +0900
committerRyo Nihei <nihei.dev@gmail.com>2021-05-13 18:45:54 +0900
commit67742a9fa833e82ac06bc664c5d0495ce7408b08 (patch)
tree2bf08e8672d24cbf3f33b429d1a93ecb20c75544 /README.md
parentUse go fmt instead of gofmt (diff)
downloadtre-67742a9fa833e82ac06bc664c5d0495ce7408b08.tar.gz
tre-67742a9fa833e82ac06bc664c5d0495ce7408b08.tar.xz
Rename fields of driver.Token
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index c142bab..6fc098d 100644
--- a/README.md
+++ b/README.md
@@ -43,7 +43,7 @@ If you want to make sure that the lexical specification behaves as expected, you
`maleeni lex` command outputs tokens in JSON format. For simplicity, print significant fields of the tokens in CSV format using jq command.
```sh
-$ echo -n 'The truth is out there.' | maleeni lex clexspec.json | jq -r '[.kind, .text, .eof] | @csv'
+$ echo -n 'The truth is out there.' | maleeni lex clexspec.json | jq -r '[.kind_name, .text, .eof] | @csv'
"word","The",false
"whitespace"," ",false
"word","truth",false
@@ -115,7 +115,7 @@ entry object:
| Field | Type | Nullable | Description |
|---------|------------------|----------|-----------------------------------------------------------------------------------------------|
-| kinds | string | false | A name of a token kind |
+| kind | string | false | A name of a token kind |
| pattern | string | false | A pattern in a regular expression |
| modes | array of strings | true | Mode names that an entry is enabled in (default: "default") |
| push | string | true | A mode name that the lexer pushes to own mode stack when a token matching the pattern appears |