Calling C MARPA from Java

52 views
Skip to first unread message

phi...@free.fr

unread,
Aug 16, 2015, 11:47:13 AM8/16/15
to marpa parser

Hello,

First of all, can the C version of MARPA be used on its own (without PERL)?

Second, has anyone managed to run it using Java JNI?

Many thanks.

Philippe

Ruslan Shvedov

unread,
Aug 16, 2015, 12:06:17 PM8/16/15
to marpa-...@googlegroups.com
On Sun, Aug 16, 2015 at 6:47 PM, <phi...@free.fr> wrote:

Hello,

First of all, can the C version of MARPA be used on its own (without PERL)?
Yes, here is a json parser in the libmarpa repo.
 
Second, has anyone managed to run it using Java JNI?
Nope, AFAIK, but that must be doable relatively easily, as e.g. with lua, python and csharp in https://github.com/rns/libmarpa-bindings


 

Many thanks.

Philippe

--
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 marpa-parser...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jeffrey Kegler

unread,
Aug 16, 2015, 12:06:49 PM8/16/15
to Marpa Parser Mailing LIst
> can the C version of MARPA be used on its own (without PERL)?

Yes -- https://jeffreykegler.github.io/Marpa-web-site/libmarpa.html -- the parse engine is separately documented and in C90 C C language.  The interface is complete, but *very* low-level.  For example, no symbol names -- symbols, rules and everything else is an integer and the upper layer has to provide names (which in fact are always necessary).

There are a number of ports underway.  List: anyone know of one for Java JNI? Folks on the IRC channel may know more.

--

Jeffrey Kegler

unread,
Aug 16, 2015, 12:08:02 PM8/16/15
to Marpa Parser Mailing LIst
rns: Thanks!  Your better answers crossed mine. :-)

Ruslan Shvedov

unread,
Aug 16, 2015, 12:12:13 PM8/16/15
to marpa-...@googlegroups.com
On Sun, Aug 16, 2015 at 7:08 PM, Jeffrey Kegler <jeffre...@jeffreykegler.com> wrote:
rns: Thanks!  Your better answers crossed mine. :-)
:) They should work together pretty well.

Ron Savage

unread,
Aug 16, 2015, 8:10:36 PM8/16/15
to marpa parser
Thanx for the list. I've added it to Marpa's FAQ: http://savage.net.au/Perl-modules/html/marpa.papers/chapter3.html

Reply all
Reply to author
Forward
0 new messages