-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed the issue with the global types not being defined
- Loading branch information
Khashayar Barooti
committed
Nov 25, 2024
1 parent
b31c3a7
commit 5c39fe1
Showing
6 changed files
with
30 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
mod ScanMode { | ||
global GRAMMAR_SCAN = 0; | ||
global STRING_SCAN = 1; | ||
global NUMERIC_SCAN = 2; | ||
global GRAMMAR_SCAN: Field = 0; | ||
global STRING_SCAN: Field = 1; | ||
global NUMERIC_SCAN: Field = 2; | ||
global LITERAL_SCAN: Field = 3; | ||
} | ||
|
||
mod Token { | ||
global NO_TOKEN = 0; | ||
global BEGIN_OBJECT_TOKEN = 1; | ||
global END_OBJECT_TOKEN = 2; | ||
global BEGIN_ARRAY_TOKEN = 3; | ||
global NO_TOKEN: Field = 0; | ||
global BEGIN_OBJECT_TOKEN: Field = 1; | ||
global END_OBJECT_TOKEN: Field = 2; | ||
global BEGIN_ARRAY_TOKEN: Field = 3; | ||
global END_ARRAY_TOKEN: Field = 4; | ||
global KEY_SEPARATOR_TOKEN = 5; | ||
global VALUE_SEPARATOR_TOKEN = 6; | ||
global STRING_TOKEN = 7; | ||
global NUMERIC_TOKEN = 8; | ||
global LITERAL_TOKEN = 9; | ||
global KEY_TOKEN = 10; | ||
global NUM_TOKENS = 11; | ||
global NUM_TOKENS_MUL_2 = 22; | ||
global KEY_SEPARATOR_TOKEN: Field = 5; | ||
global VALUE_SEPARATOR_TOKEN: Field = 6; | ||
global STRING_TOKEN: Field = 7; | ||
global NUMERIC_TOKEN: Field = 8; | ||
global LITERAL_TOKEN: Field = 9; | ||
global KEY_TOKEN: Field = 10; | ||
global NUM_TOKENS: u32 = 11; | ||
global NUM_TOKENS_MUL_2: u32 = 22; | ||
} | ||
|
||
mod Layer { | ||
global OBJECT_LAYER = 0; | ||
global ARRAY_LAYER = 1; | ||
global SINGLE_VALUE_LAYER = 2; | ||
global OBJECT_LAYER: Field = 0; | ||
global ARRAY_LAYER: Field = 1; | ||
global SINGLE_VALUE_LAYER: Field = 2; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters