Skip to content

Commit

Permalink
parser: fix expression parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Jun 24, 2024
1 parent 5576bbb commit f4b18b0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion std/jule/parser/expr.jule
Original file line number Diff line number Diff line change
Expand Up @@ -876,10 +876,14 @@ impl exprBuilder {
if len(tokens) == 0 {
ret nil
}
let mut kind = self.buildKind(tokens)
if kind == nil {
ret nil
}
ret &Expr{
Token: tokens[0],
End: tokens[len(tokens)-1],
Kind: self.buildKind(tokens),
Kind: kind,
}
}
}
Expand Down

0 comments on commit f4b18b0

Please sign in to comment.