HuoLanguage / huo

interpreted language written in C
MIT License
212 stars 21 forks source link

Better encapsulation of AST elements #24

Open TheLoneWolfling opened 8 years ago

TheLoneWolfling commented 8 years ago

This is a placeholder for some work I'll be doing. The basic idea is to replace the current ad-hoc accessing of the value.data union with proper accessors functions and enums. That way we'll be less likely to access the wrong variable type, and it'll be easier to check for errors too.