diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2021-05-12 21:31:33 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2021-05-13 18:45:54 +0900 |
commit | 67742a9fa833e82ac06bc664c5d0495ce7408b08 (patch) | |
tree | 2bf08e8672d24cbf3f33b429d1a93ecb20c75544 /README.md | |
parent | Use go fmt instead of gofmt (diff) | |
download | tre-67742a9fa833e82ac06bc664c5d0495ce7408b08.tar.gz tre-67742a9fa833e82ac06bc664c5d0495ce7408b08.tar.xz |
Rename fields of driver.Token
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | |