News for hackers. Stuff that matters.
Re:Show HN: a lexer, parser, interpreter and web runtime (np... by iskander on Sunday March 17, 2013 @07:53PM (#5391647)
Looks cool but the sandboxed interpreter fails to run in my instance of Chrome (v25 on Mac OS X):

>Error: java.lang.NullPointerException np.LibRuntime.b_assign(LibRuntime.java:214) sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:616) np.LibRuntime.execute(LibRuntime.java:104) np.CoreBuiltin.execute(CoreBuiltin.java:85) np.ClastExp.invoke(ClastExp.java:32) np.ClastExp.run(ClastExp.java:45) np.ClastExp.invoke(ClastExp.java:21) np.ClastExp.run(ClastExp.java:45) np.ClastModule.run(ClastModule.java:29) np.Interpreter.run(Interpreter.java:120)

etc...

Re:Show HN: a lexer, parser, interpreter and web runtime (np... by Udo on Sunday March 17, 2013 @07:55PM (#5391651)
The tutorial examples seem to work. Could you post the code you're executing?

Thanks for letting me know!

Re:Show HN: a lexer, parser, interpreter and web runtime (np... by iskander on Monday March 18, 2013 @12:36AM (#5392478)
I don't remember exactly what I typed in, something along the lines of:

    x = 10;
    y = 20;
    println (x ^ (y ^ y));
Re:Show HN: a lexer, parser, interpreter and web runtime (np... by Udo on Monday March 18, 2013 @12:41AM (#5392501)
Huh, the ^ operator isn't defined yet, but that shouldn't have caused it. Damn, I would have liked to find this out, because the end user should never see exceptions of course. Anyway, thanks for telling me, I hope it'll crop up again in the future!
Re:Show HN: a lexer, parser, interpreter and web runtime (np... by huhtenberg on Monday March 18, 2013 @06:13AM (#5393326)

  oki-doki = 42;
will cause an exception too.