mjarkk / general_programming_language

A temporarly repo for an idea to create a programming language that can be compiled into other languages
MIT License
1 stars 0 forks source link

Fixed missing char + added some more function documentation #6

Closed TheOtterlord closed 4 years ago

TheOtterlord commented 4 years ago
mjarkk commented 4 years ago

Great! i'll merge the pr

mjarkk commented 4 years ago

maybe something next could be adding support for comments.
I thought they would just be something like // for 1 line comments and /* */ for multi line comments

TheOtterlord commented 4 years ago

Yeah, most languages use this syntax so it will help people migrate over. It also allows us to start documenting our tests & examples.

mjarkk commented 4 years ago

I think this could be best implemented in the next_char function because this needs to be everywhere possible.
Although if we ever want to support code .gpl file formatting we might want to remember some comment context but we can always add that later.

TheOtterlord commented 4 years ago

For now, best to just implement the ability to use comments. And yes, I think that next_char is a good place to put it.