darklang / dark

Darklang main repo, including language, backend, and infra
https://darklang.com
Other
1.66k stars 90 forks source link

Tree-Sitter Grammar updates to make #5321

Open OceanOak opened 6 months ago

OceanOak commented 6 months ago

We are implementing a new parser written in Darklang. This issue gathers the grammar updates that need to be done to match more of our full language.

Expressions:

Type references:

Match pattern:

Source file:

Other:

StachuDotNet commented 5 months ago

Source file:

I think this should include 'module declaration' too.

For now, in the same nested way that we define modules with the F#-friendly parser. Later, we (a few weeks from now) can handle more succinct declarations as well (i.e. module A.B.C at the top of the 'file')