From 67742a9fa833e82ac06bc664c5d0495ce7408b08 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Wed, 12 May 2021 21:31:33 +0900 Subject: Rename fields of driver.Token --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') 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 | -- cgit v1.2.3