kierenj / 0x10c-DevKit

0x10c DevKit
http://0x10c-devkit.com/
39 stars 4 forks source link

Line ending character #138

Closed ghost closed 12 years ago

ghost commented 12 years ago

It's nice to have a character that can be used instead of a new line

kierenj commented 12 years ago

This would be possible by modifying the tokeniser - what did you have in mind? Underscore perhaps?

ghost commented 12 years ago

Maybe one of these suckers? "|" , the obvious choice the semi-colon has been used as a comment for some forsaken reason.

kierenj commented 12 years ago

Not currently implemented, but | should be a bitwise OR. I think _ is used in some languages, or a backslash (). It might also be possible to attempt to detect the end of a line/expression in the parser code, meaning you don't have to use a character. I'm going to revisit this at some point soon to see if there are any more comments/thoughts

ghost commented 12 years ago

You could in fact make the space the end of line character, because the format is very straight forward

kierenj commented 12 years ago

Technically, space or a pipe (| or ¦) cannot work as alternative line-ending characters. I'm going to close this one for now..