sam701 / syconf

A simple configuration language that keeps your config files lean
Apache License 2.0
4 stars 1 forks source link

Support conditionals for import statement #25

Closed sam701 closed 3 years ago

sam701 commented 3 years ago

In this ./b.sy must not be imported

if true import "./a.sy" else import "./b.sy"
sam701 commented 3 years ago

I guess both files must be parsed anyway independent of the condition. Otherwise it can happen that a file contain a bug that won't be discovered immediately because of the condition.