rhaiscript/lsp

Support ranges

Closed this issue · 2 comments

Rhai 1.4.0 added range operators, these need to be added to both the parser and the HIR.

The HIR maybe not need a big change, since ranges is purely syntactic sugar. They compile down to Range and RangeInclusive types.

The parser should be able to parse them now. I don't think the HIR needs any specific changes, we can just define operator types that return Range and RangeInclusive respectively whenever a type system is implemented.