Guest User

Untitled

a guest
May 25th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. euler:rbx-cpp brian$ bin/rbx -P -e 'p 1'
  2. 1
  3. euler:rbx-cpp brian$ DEV=1 rake build
  4. (in /Users/brian/devel/rbx-cpp)
  5. Compiling kernel/delta/string.rb
  6. euler:rbx-cpp brian$ bin/rbx -P -e 'p 1'
  7. s(:call, nil, :p, s(:arglist, s(:fixnum, 1)))
  8. 1
  9. euler:rbx-cpp brian$ bin/rbx -P -e 'def a; p 1; end; a'
  10. s(:block, s(:defn, :a, s(:args), s(:scope, s(:block, s(:call, nil, :p, s(:arglist, s(:fixnum, 1)))))), s(:call, nil, :a, s(:arglist)))
  11. 1
  12. euler:rbx-cpp brian$ bin/rbx -P -e 'a.'
  13. A syntax error has occured:
  14. (eval):1: syntax error, unexpected $end
  15. near line (eval):1, column 2
  16.  
  17. Code:
  18. a.
  19. ^
  20.  
  21. Backtrace:
  22. String#to_sexp_pt at kernel/delta/string.rb:35
  23. String#to_sexp at kernel/delta/string.rb:57
  24. Compiler.compile_string at lib/compiler/compiler.rb:43
  25. Compile.compile_string at kernel/common/compile.rb:55
  26. Kernel(Module)#eval at kernel/common/eval.rb:50
  27. Compile.execute at kernel/common/compile.rb:59
  28. Object#__script__ at kernel/loader.rb:267
  29. euler:rbx-cpp brian$ bin/rbx -P -e 'class A; def a; p 1; end; end; A.new.a'
  30. s(:block, s(:class, :A, nil, s(:scope, s(:defn, :a, s(:args), s(:scope, s(:block, s(:call, nil, :p, s(:arglist, s(:fixnum, 1)))))))), s(:call, s(:call, s(:const, :A), :new, s(:arglist)), :a, s(:arglist)))
  31. 1
Add Comment
Please, Sign In to add comment