Bean Shell Compiler

By vijay on October 13, 2005 — 1 min read

Bean Shell makes your Java programs scriptable. Recently I started working on it. BeanShell provides its own JavaScript-like syntax to access your Java Objects. You can even change the syntax to anything you like using JavaCC. I started playing with it. BeanShell uses a Parser and Abstract Syntax Tree (AST) to tokenize the code. Here’s a small class for compiling the BSH script, before sending it to the interpreter.

Posted in: Programming

Leave a comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.