diff options
author | Ryo Nihei <nihei.dev@gmail.com> | 2021-08-01 15:29:18 +0900 |
---|---|---|
committer | Ryo Nihei <nihei.dev@gmail.com> | 2021-08-01 15:38:54 +0900 |
commit | 03e3688e3928c88c12107ea734c35281c814e0c0 (patch) | |
tree | 7f57554aec423098c8325238aef72cffdae7651e /README.md | |
parent | Fix CHANGELOG (diff) | |
download | tre-03e3688e3928c88c12107ea734c35281c814e0c0.tar.gz tre-03e3688e3928c88c12107ea734c35281c814e0c0.tar.xz |
Add unique kind IDs to tokens
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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. | |