From 03e3688e3928c88c12107ea734c35281c814e0c0 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Sun, 1 Aug 2021 15:29:18 +0900 Subject: Add unique kind IDs to tokens --- README.md | 1 + 1 file changed, 1 insertion(+) (limited to 'README.md') 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. | -- cgit v1.2.3