I'm using the hawkins java parser.
In the C langage, the link between the script and the functions is
done through a function pointers array.
How does it work in java ?
Thanks for your help
On 13 juin, 14:59, "Dave Dolan" <
dave.do...@gmail.com> wrote:
> You have to write yourself an interpreter. A Parser is just the front end.
> Use the parser to build an Abstract Syntax tree. Each of the nodes in the
> syntax tree needs to have an Execute or Evaluate method, which recursively
> calls evaluate on it's children and then itself. passing the values or
> actions up the tree.
>
> You apparently have greatly underestimated what you're trying to do here ;)
>
> On Fri, Jun 13, 2008 at 4:14 AM, <
christophe_poti...@yahoo.fr> wrote:
>
> > How do you link a function call in a script with a java function ?
>
> > For example, if you have the "l = GetLength(str)" scipt line. How do
> > you link it with the "Integer GetLength(String str)" java function ?
>
> > Thanks for your help
>
> --
> ---------------------------------------------------------------
> Dave Dolan
> Certified Computer Geek-inatorhttp://
davedolan.com
>
dave.do...@gmail.com