Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- endCheck :->
- if @pos >= @code.length
- trace(if @compil_ok then "Compilation OK." else "Compilation fail.")
- return true
- return false
- trimForNext: ->
- while (@code[@pos].charCodeAt(0) < 33 || @code[@pos].charCodeAt(0) == 127) && !@endCheck()
- if @code[@pos] == '\n'
- @line++
- @pos++
- next: ->
- @trimForNext()
- if @endCheck()
- return null
Advertisement
Add Comment
Please, Sign In to add comment