y-flat / yfc

The best (because it's the only) compiler for the Y-flat programming language.
GNU General Public License v3.0
6 stars 7 forks source link

When compiling, check EXPLICITLY for a main function #101

Closed adamhutchings closed 2 years ago

adamhutchings commented 2 years ago

Right now if a file is compiled without a main function, it just emits a generic "compilation failed" message. It would be way more informative if there were an actual "Error: no entry point defined" function or something along those lines.