bash - POSIX shell like implementation in Java -
-
Is there any address to implement POSISSL like scripting for scripting things? >
-
If this is not available, does anyone know whether any ANLR or Residential Vocabulary is available anywhere which I can remember?
Edit: I know that I have Javascript available for Jethon, Djerobi, Groove, scripting, but none of them Not like the creation.
It will not be used for scripting Java code, but allowing people to manipulate a predefined command that manipulate with a large third party media asset management system.
I would like to run such things:
ls. Grep "something" & gt; Output
Where ls and grep will be Java commands (this is just for example)
Thanks
-
-
Opening POSIX (I think that you have a Bash-like) syntax is quite complex, there is no clear separation between Lexing and Parsing. Hardly any backtracking is required for parsing on the other hand. So a parser generator can not help too much.
Edit because you have clarified that you want shell syntax:
I think your best The condition is to use existing shell. Here are some architectural performance:
-
You can link your application to an existing shell. Add built-in ones that manipulate your asset management system. Licensing Problems This may give an example example of a shell example.
-
You can use a simple client-server architecture, where the server is part of the application and simply answers simple commands without any control, and the client is added to the shell And it does not directly access the application data Many shells (bash, ksh, zsh) already mean TCP access.
You may not need to change the communication protocol again; Consider going to HTTP (s), for which server and client deployment are easily available. In fact you can participate with the screenplay or curl around the wget only towards the client, so there will be no need to pat the shell (this will have to maintain a complex position on the customer side).
Will appear in the form of a module that defines and defines what you want (for example, zsh distribution includes modules for things like FTP and MMAP).
Comments
Post a Comment