Skip to content

Commit

Permalink
Added <[]> syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Jan 28, 2025
1 parent 5e0ab9d commit 9245754
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 11 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
# C3IntelliJ Changelog

## [Unreleased]
- function and import completion

- Function and import completion
- Support experimental <[]> syntax.

## [0.0.22] - 2025-01-20

Expand Down
79 changes: 71 additions & 8 deletions src/main/gen/org/c3lang/intellij/parser/C3Parser.java

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/main/java/org/c3lang/intellij/C3.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ func_typedef ::= KW_FN optional_type fn_parameter_list

typedef_type ::= func_typedef | type generic_parameters?
generic_parameter ::= expr | type
generic_parameters ::= LGENPAR generic_parameter (COMMA generic_parameter)* RGENPAR
generic_parameters ::= (LGENPAR | (LT_OP LBT)) generic_parameter (COMMA generic_parameter)* (RGENPAR | (RBT GT_OP))
any_ident ::= AT_TYPE_IDENT | TYPE_IDENT | CT_TYPE_IDENT | AT_IDENT | IDENT | CONST_IDENT | CT_CONST_IDENT

def_attr_values ::= LB attributes? RB
Expand Down Expand Up @@ -522,7 +522,7 @@ mult_bin_op ::= STAR | DIV | MOD { name = "operator" }
shift_bin_op ::= SHL | SHR { name = "operator "}
bit_bin_op ::= AMP | BIT_XOR | BIT_OR { name = "operator" }
add_bin_op ::= PLUS | MINUS | CT_PLUS { name = "operator" }
rel_bin_op ::= LT_OP | GT_OP | LE_OP | GE_OP | EQ_OP | NE_OP { name = "operator" }
rel_bin_op ::= LT_OP !LBT | GT_OP | LE_OP | GE_OP | EQ_OP | NE_OP { name = "operator" }

catch_unwrap_list ::= expr (COMMA expr)*
catch_unwrap ::= KW_CATCH (type? IDENT EQ)? catch_unwrap_list
Expand Down

0 comments on commit 9245754

Please sign in to comment.