Skip to content

Commit

Permalink
good enouugh ficx
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli committed Dec 9, 2023
1 parent 5dabb76 commit 5fdb958
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions self_hosted/parser.jou
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ class Parser:
def parse_type(self) -> AstType:
if not (
self->tokens->kind == TokenKind::Name
or self->tokens->is_keyword("None")
or self->tokens->is_keyword("void")
or self->tokens->is_keyword("noreturn")
or self->tokens->is_keyword("short")
Expand Down
2 changes: 2 additions & 0 deletions self_hosted/parses_wrong.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tests/syntax_error/assign_to_None.jou
tests/syntax_error/None_as_value.jou
4 changes: 4 additions & 0 deletions self_hosted/runs_wrong.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,7 @@ tests/wrong_type/index.jou
stdlib/ascii.jou
tests/should_succeed/ascii_test.jou
stdlib/_macos_startup.jou
tests/should_succeed/if_WINDOWS_at_runtime.jou
tests/should_succeed/return_none.jou
tests/syntax_error/assign_to_None.jou
tests/syntax_error/None_as_value.jou

0 comments on commit 5fdb958

Please sign in to comment.