aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2021-08-01 15:29:18 +0900
committerRyo Nihei <nihei.dev@gmail.com>2021-08-01 15:38:54 +0900
commit03e3688e3928c88c12107ea734c35281c814e0c0 (patch)
tree7f57554aec423098c8325238aef72cffdae7651e /README.md
parentFix CHANGELOG (diff)
downloadtre-03e3688e3928c88c12107ea734c35281c814e0c0.tar.gz
tre-03e3688e3928c88c12107ea734c35281c814e0c0.tar.xz
Add unique kind IDs to tokens
Diffstat (limited to 'README.md')
-rw-r--r--README.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/README.md b/README.md
index 15a35a5..8f9f01c 100644
--- a/README.md
+++ b/README.md
@@ -67,6 +67,7 @@ The JSON format of tokens that `maleeni lex` command prints is as follows:
|-----------|-------------------|----------------------------------------------------------------------------------------|
| mode | integer | `mode` represents a number that corresponds to a `mode_name`. |
| mode_name | string | `mode_name` is a mode name that represents in which mode the lexer detected the token. |
+| kind_id | integer | `kind_id` represents an ID of a kind and is unique among modes. |
| kind | integer | `kind` represents a number that corresponds to a `KindName`. |
| kind_name | string | `kind_name` is a kind name that represents what kind the token has. |
| match | array of integers | `match` is a byte sequence matched a pattern of a lexical specification. |