jmeaster30 / ocean

A C-like programming language (get it like sea-like like an ocean lol)
GNU General Public License v3.0
0 stars 0 forks source link

Use more code generation for the parser #84

Open jmeaster30 opened 8 months ago

jmeaster30 commented 8 months ago

While looking into the intellij language plugins, you have to define a grammar and generate a parser. This should definitely be worked into the building of the main compiler and the grammar should also generate the parser for the compiler.

This will make it so we don't forget to update the plugins with grammar changes in the compiler.

I wonder if this can be done with ocean macros but it will probably need to be done with more basic code generation in a rust build script

jmeaster30 commented 8 months ago

Looks like it uses flex to generate a lexer hmmmm