coolya / basic-lang

A basic step by step example we use to build our own language live on stream at https://twitch.tv/dumdidum
MIT License
3 stars 2 forks source link

Type system for floating point numbers #2

Open coolya opened 5 years ago

coolya commented 5 years ago

The typesystem is currently limited to integer types.

We should also allow floating points and infer the type from the literal. The typesystem should allows assigning integers to floating points but not vice versa.