Skip to content

Commit

Permalink
Add support for array types to parse_decl()
Browse files Browse the repository at this point in the history
  • Loading branch information
maximecb committed Oct 18, 2023
1 parent 3b2eee2 commit e565b14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ncc/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,7 @@ fn parse_decl(input: &mut Input) -> Result<(Type, String, Option<Expr>), ParseEr
{
let var_type = parse_type(input)?;
let var_name = input.parse_ident()?;
let var_type = parse_array_type(input, var_type)?;

// For now, no support for local array variables
// This would need alloca() to work
Expand Down

0 comments on commit e565b14

Please sign in to comment.