Skip to content

Commit

Permalink
Merge pull request #444 from Peefy/update-literal-type-spec
Browse files Browse the repository at this point in the history
fix: remove none type in the literal type spec
  • Loading branch information
Peefy authored Aug 17, 2024
2 parents 27bd9d1 + 68ad51c commit ee62bba
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 16 deletions.
Empty file added a.k
Empty file.
2 changes: 1 addition & 1 deletion docs/reference/lang/spec/kcl-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ basic_type: STRING_TYPE | INT_TYPE | FLOAT_TYPE | BOOL_TYPE | ANY_TYPE
compound_type: list_type | dict_type
list_type: LEFT_BRACKETS (type)? RIGHT_BRACKETS
dict_type: LEFT_BRACE (type)? COLON (type)? RIGHT_BRACE
literal_type: string | number | TRUE | FALSE | NONE
literal_type: string | number | TRUE | FALSE

//////////// type alias ////////////
type_alias_stmt: TYPE NAME ASSIGN type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ basic_type: STRING_TYPE | INT_TYPE | FLOAT_TYPE | BOOL_TYPE | ANY_TYPE
compound_type: list_type | dict_type
list_type: LEFT_BRACKETS (type)? RIGHT_BRACKETS
dict_type: LEFT_BRACE (type)? COLON (type)? RIGHT_BRACE
literal_type: string | number | TRUE | FALSE | NONE
literal_type: string | number | TRUE | FALSE

//////////// type alias ////////////
type_alias_stmt: TYPE NAME ASSIGN type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ basic_type: STRING_TYPE | INT_TYPE | FLOAT_TYPE | BOOL_TYPE | ANY_TYPE
compound_type: list_type | dict_type
list_type: LEFT_BRACKETS (type)? RIGHT_BRACKETS
dict_type: LEFT_BRACE (type)? COLON (type)? RIGHT_BRACE
literal_type: string | number | TRUE | FALSE | NONE
literal_type: string | number | TRUE | FALSE

//////////// type alias ////////////
type_alias_stmt: TYPE NAME ASSIGN type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ basic_type: STRING_TYPE | INT_TYPE | FLOAT_TYPE | BOOL_TYPE | ANY_TYPE
compound_type: list_type | dict_type
list_type: LEFT_BRACKETS (type)? RIGHT_BRACKETS
dict_type: LEFT_BRACE (type)? COLON (type)? RIGHT_BRACE
literal_type: string | number | TRUE | FALSE | NONE
literal_type: string | number | TRUE | FALSE

//////////// type alias ////////////
type_alias_stmt: TYPE NAME ASSIGN type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ basic_type: STRING_TYPE | INT_TYPE | FLOAT_TYPE | BOOL_TYPE | ANY_TYPE
compound_type: list_type | dict_type
list_type: LEFT_BRACKETS (type)? RIGHT_BRACKETS
dict_type: LEFT_BRACE (type)? COLON (type)? RIGHT_BRACE
literal_type: string | number | TRUE | FALSE | NONE
literal_type: string | number | TRUE | FALSE

//////////// type alias ////////////
type_alias_stmt: TYPE NAME ASSIGN type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ basic_type: STRING_TYPE | INT_TYPE | FLOAT_TYPE | BOOL_TYPE | ANY_TYPE
compound_type: list_type | dict_type
list_type: LEFT_BRACKETS (type)? RIGHT_BRACKETS
dict_type: LEFT_BRACE (type)? COLON (type)? RIGHT_BRACE
literal_type: string | number | TRUE | FALSE | NONE
literal_type: string | number | TRUE | FALSE

//////////// type alias ////////////
type_alias_stmt: TYPE NAME ASSIGN type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ basic_type: STRING_TYPE | INT_TYPE | FLOAT_TYPE | BOOL_TYPE | ANY_TYPE
compound_type: list_type | dict_type
list_type: LEFT_BRACKETS (type)? RIGHT_BRACKETS
dict_type: LEFT_BRACE (type)? COLON (type)? RIGHT_BRACE
literal_type: string | number | TRUE | FALSE | NONE
literal_type: string | number | TRUE | FALSE

//////////// type alias ////////////
type_alias_stmt: TYPE NAME ASSIGN type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ basic_type: STRING_TYPE | INT_TYPE | FLOAT_TYPE | BOOL_TYPE | ANY_TYPE
compound_type: list_type | dict_type
list_type: LEFT_BRACKETS (type)? RIGHT_BRACKETS
dict_type: LEFT_BRACE (type)? COLON (type)? RIGHT_BRACE
literal_type: string | number | TRUE | FALSE | NONE
literal_type: string | number | TRUE | FALSE

//////////// type alias ////////////
type_alias_stmt: TYPE NAME ASSIGN type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ basic_type: STRING_TYPE | INT_TYPE | FLOAT_TYPE | BOOL_TYPE | ANY_TYPE
compound_type: list_type | dict_type
list_type: LEFT_BRACKETS (type)? RIGHT_BRACKETS
dict_type: LEFT_BRACE (type)? COLON (type)? RIGHT_BRACE
literal_type: string | number | TRUE | FALSE | NONE
literal_type: string | number | TRUE | FALSE

//////////// type alias ////////////
type_alias_stmt: TYPE NAME ASSIGN type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ basic_type: STRING_TYPE | INT_TYPE | FLOAT_TYPE | BOOL_TYPE | ANY_TYPE
compound_type: list_type | dict_type
list_type: LEFT_BRACKETS (type)? RIGHT_BRACKETS
dict_type: LEFT_BRACE (type)? COLON (type)? RIGHT_BRACE
literal_type: string | number | TRUE | FALSE | NONE
literal_type: string | number | TRUE | FALSE

//////////// type alias ////////////
type_alias_stmt: TYPE NAME ASSIGN type
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.4/reference/lang/spec/kcl-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ basic_type: STRING_TYPE | INT_TYPE | FLOAT_TYPE | BOOL_TYPE | ANY_TYPE
compound_type: list_type | dict_type
list_type: LEFT_BRACKETS (type)? RIGHT_BRACKETS
dict_type: LEFT_BRACE (type)? COLON (type)? RIGHT_BRACE
literal_type: string | number | TRUE | FALSE | NONE
literal_type: string | number | TRUE | FALSE

//////////// type alias ////////////
type_alias_stmt: TYPE NAME ASSIGN type
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.5/reference/lang/spec/kcl-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ basic_type: STRING_TYPE | INT_TYPE | FLOAT_TYPE | BOOL_TYPE | ANY_TYPE
compound_type: list_type | dict_type
list_type: LEFT_BRACKETS (type)? RIGHT_BRACKETS
dict_type: LEFT_BRACE (type)? COLON (type)? RIGHT_BRACE
literal_type: string | number | TRUE | FALSE | NONE
literal_type: string | number | TRUE | FALSE

//////////// type alias ////////////
type_alias_stmt: TYPE NAME ASSIGN type
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.6/reference/lang/spec/kcl-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ basic_type: STRING_TYPE | INT_TYPE | FLOAT_TYPE | BOOL_TYPE | ANY_TYPE
compound_type: list_type | dict_type
list_type: LEFT_BRACKETS (type)? RIGHT_BRACKETS
dict_type: LEFT_BRACE (type)? COLON (type)? RIGHT_BRACE
literal_type: string | number | TRUE | FALSE | NONE
literal_type: string | number | TRUE | FALSE

//////////// type alias ////////////
type_alias_stmt: TYPE NAME ASSIGN type
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.7/reference/lang/spec/kcl-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ basic_type: STRING_TYPE | INT_TYPE | FLOAT_TYPE | BOOL_TYPE | ANY_TYPE
compound_type: list_type | dict_type
list_type: LEFT_BRACKETS (type)? RIGHT_BRACKETS
dict_type: LEFT_BRACE (type)? COLON (type)? RIGHT_BRACE
literal_type: string | number | TRUE | FALSE | NONE
literal_type: string | number | TRUE | FALSE

//////////// type alias ////////////
type_alias_stmt: TYPE NAME ASSIGN type
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.8/reference/lang/spec/kcl-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ basic_type: STRING_TYPE | INT_TYPE | FLOAT_TYPE | BOOL_TYPE | ANY_TYPE
compound_type: list_type | dict_type
list_type: LEFT_BRACKETS (type)? RIGHT_BRACKETS
dict_type: LEFT_BRACE (type)? COLON (type)? RIGHT_BRACE
literal_type: string | number | TRUE | FALSE | NONE
literal_type: string | number | TRUE | FALSE

//////////// type alias ////////////
type_alias_stmt: TYPE NAME ASSIGN type
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.9/reference/lang/spec/kcl-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ basic_type: STRING_TYPE | INT_TYPE | FLOAT_TYPE | BOOL_TYPE | ANY_TYPE
compound_type: list_type | dict_type
list_type: LEFT_BRACKETS (type)? RIGHT_BRACKETS
dict_type: LEFT_BRACE (type)? COLON (type)? RIGHT_BRACE
literal_type: string | number | TRUE | FALSE | NONE
literal_type: string | number | TRUE | FALSE

//////////// type alias ////////////
type_alias_stmt: TYPE NAME ASSIGN type
Expand Down

0 comments on commit ee62bba

Please sign in to comment.