On Wed, Aug 3, 2016 at 9:42 PM, <[email protected]> wrote:

> * Any suggestions on how to bridge from another language (Ruby) to
> Lua/Perl is appreciated.  I don't think I have time to write new bindings.
> I anticipate I'll use some combination of files, sockets, and FFI to cross
> the gap.
>
libmarpa (C lib that implements the Marpa algorithm) bindings via FFI are
relatively easy [1], [2]. FFI-based binding lets you call libmarpa
functions, then you can add a regexp-based lexer and basically have a
parser with a grammar build by calling libmarpa symbol/rule constructors;
you can also specify your grammar as array of symbols (rhs, lhs1, lhs2, ...
) [3] for easy conctruction.

[1] https://github.com/rns/libmarpa-bindings/tree/master/python
[2] https://github.com/rns/libmarpa-bindings/tree/master/lua
[3]
https://github.com/rns/libmarpa-bindings/blob/master/lua/test/json.t.lua#L20


>
> --
> You received this message because you are subscribed to the Google Groups
> "marpa parser" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"marpa parser" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to