jfecher / ante

A safe, easy systems language
http://antelang.org
MIT License
1.9k stars 80 forks source link

Extend the parser to accept effect annotations. #175

Closed eldesh closed 10 months ago

eldesh commented 10 months ago

169

Extend the parser to accept effect annotations.

Here is an example of what it will be able to accept.

foo (f: Unit -> a can GiveInt) : a = ...

foo () : Unit can Throw FileError, Throw ParseError, Throw BarError = ...

foo () can Throw FileError, Throw ParseError, Throw BarError = ...

No semantic analysis is done, just parsing.