StackLanguge / stack-language

The official impilmentation of the Stack programming language created by BookOwl
4 stars 1 forks source link

No comments #3

Closed towerofnix closed 8 years ago

towerofnix commented 8 years ago

At the moment, you can make comments like so:

'Hello world!' pop

However, this must be a bit slow for the interpreter as it adds another two tokens. We should probably implement comments instead.

Python style:
  # this is a comment
JS style:
  // this is a comment
Other random style that might be nice:
  ~ this is a comment
towerofnix commented 8 years ago

Fixed by #4

I.e.:

'Hello' /* this is a comment */ 'World!' print print