alexschneider / teascript

5 stars 2 forks source link

Missing Operators #7

Closed juansc closed 9 years ago

juansc commented 9 years ago

@rachelriv @alexschneider @whusted I realized the following tokens are not included in our scanner.

'^', '&', '|' // bitwise operators
'+=' , '-=', '*=', '\=' // mutators
'++', '--'
'%' // Modulo operator
'return' // This seems like a must.

Will these be included in our language?

rtoal commented 9 years ago

Good find. You can add them. Don't forget to add tests.

rachelriv commented 9 years ago

Yup, looks like we need those. Go ahead and add them in the tokens class. That should be all you have to do.

juansc commented 9 years ago

Created a pull request. Will continue making sample code and see if we're missing anything else.