SuperMonkey

bug

May 4th, 2014
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. endCheck :->
  2.         if @pos >= @code.length
  3.             trace(if @compil_ok then "Compilation OK." else "Compilation fail.")
  4.             return true
  5.         return false
  6.  
  7.  
  8.     trimForNext: ->
  9.         while (@code[@pos].charCodeAt(0) < 33 || @code[@pos].charCodeAt(0) == 127) && !@endCheck()
  10.  
  11.             if @code[@pos] == '\n'
  12.                 @line++
  13.  
  14.             @pos++
  15.  
  16.  
  17.     next: ->
  18.         @trimForNext()
  19.  
  20.         if @endCheck()
  21.             return null
Advertisement
Add Comment
Please, Sign In to add comment