jbash


Java parser for the Bourne Again Shell (Bash)

jBash

Java parser for the Bourne Again Shell

http://3.bp.blogspot.com/_NwRgcf0TBeA/S2sAoItd53I/AAAAAAAAAB8/0gbOHV-qL_I/s1600-h/5572_1119791047055_1595419087_294569_2390409_n.jpg'>http://3.bp.blogspot.com/_NwRgcf0TBeA/S2sAoItd53I/AAAAAAAAAB8/0gbOHV-qL_I/s640/5572_1119791047055_1595419087_294569_2390409_n.jpg' alt='' border='0' width='640' height='450' />

Jbash is a parser that accepts a syntax similar to bash.

The main idea is to create a pseudo-shell that runs on any kind of device, from a smartphone to a normal pc. Jbash can execute built-in commands and external program, export variables, evaluate expressions using a dynamic scope. jBash is wrote using JavaCC so there is a javacc code implementation. It's released under the GNU GPL license. (in the image you can see jBash running in a UNIX shell, but whereas it's wrote in Java so it can runs on any O.S. and architecture). Now jBash integrates the Secure Parallel Transfer Protocol (SPTP) becaming a good portable secure shell. For infos: Links about jBash with Secure Parallel Transfer Protocol (SPTP) project: http://code.google.com/p/sptp/

Javacc project to use bash on all Java supported platforms.


Experimental Bash grammar for JavaCC.

References used for this grammar :

  • Bash Official Manual (man bash)
  • http://www.gnu.org/software/bash/manual/
  • This grammar is released under the GNU Library Public License (LGPL).

    Vincenzo Dentamaro University of Bari (Italy) vincenzodentamaro@gmail.com

    Emanuele Palumbo University of Bari (Italy) emanuelepalumbo@virgilio.it

    @see http://code.google.com/p/jbash/

    Idea:

    • Bashis a parser that accepts a syntax similar to bash.
    The idea is to create a pseudo-shell that can run on any kind of
    devices, from a smartphone to normal pc.

    • Author: Vincenzo Dentamaro mat.556035
      Emanuele Palumbo mat.512657
    Date: 05 august 2009
    27 august 2010 jBash 0.2 with SPTP 2.1

    See http://code.google.com/p/sptp/'>SPTP with jBash

    In future it will be the Bash port for all the Java 2 ME (MIDIP 2.0) enabled devices.

    Project Information

    • License: GNU GPL v3
    • 13 stars
    • svn-based source control

    Labels:
    javacc java bash shell grammar shellgrammar java2ME javame midip2.0