tonysparks / litac-lang

LitaC compiler in LitaC
7 stars 5 forks source link

Enable compiler configuration #31

Closed Wiguwbe closed 1 year ago

Wiguwbe commented 1 year ago

With a publicly exposed configuration file (in this case src/config.lita), one is able to set the defaults of some of the command line parameters, namely the LITAC_HOME environment variable and -buildCmd. It was also added parameters for the output and output directory.

The README was updated accordingly.

There was also a small change to have a default LITAC_HOME variable set on build.sh (which could/should be replicated to the .bat scripts).


With a file having some of the compiler configuration easily exposed (that can even be procedurally generated), I believe integrating a build system should be easier.

Wiguwbe commented 1 year ago

(I guess I should've started with this)

Let me also congratulate you on this amazing piece of software,

for a while that I've been looking for a "higher level" C compiler, with struct methods and templates, and this project, specially with the code generation to C, is very helpful in starting to port (or implement new features on) C code bases.

Anyway, let me know if you'd like a change or two here :)

tonysparks commented 1 year ago

This is great, thank you so much for contributing!