Re: Java 8 Parser

2017-05-01 Thread Durand Jean-Damien
new to Marpa but, from its description, it looks extremely > awesome. > > I'm also done playing with the beginner's example of the expression > calculator; was also able to make small changes to it. So far, so good. > > However, now, I'm trying to write a

Re: Java 8 Parser

2016-10-18 Thread Ron Savage
Thanx. Typos fixed. -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/

Re: Java 8 Parser

2016-10-17 Thread Ruslan Shvedov
Great, thanks. BTW, s/How to I/How do I/ on both. I'd file a PR, but couldn't find those entries at https://github.com/ronsavage/marpa.faq -- missing something perhaps. On Tue, Oct 18, 2016 at 3:12 AM, Ron Savage wrote: > Using this material, I've added 2 new questions to the FAQ: > http://sav

Re: Java 8 Parser

2016-10-17 Thread Ron Savage
Using this material, I've added 2 new questions to the FAQ: http://savage.net.au/Perl-modules/html/marpa.faq/faq.html. Nos 144 and 145. -- You received this message because you are subscribed to the Google Groups "marpa parser" group. To unsubscribe from this group and stop receiving emails fr

Re: Java 8 Parser

2016-10-17 Thread Ruslan Shvedov
On Thu, Oct 13, 2016 at 6:00 PM, Harry wrote: > > 1. Keyword vs Identifier: > http://stackoverflow.com/questions/27109840/marpa-can-i-explicitly-disallow-keywords-as-identifiers https://gist.github.com/rns/d19b40ffc5523659dec9 -- events can be used to analyze the string using Perl regexes and re

Re: Java 8 Parser

2016-10-15 Thread Jeffrey Kegler
Harry's example depends on eager (shortest match) recognition. IIRC Perl regex named properties won't get him there. On Sat, Oct 15, 2016 at 9:06 PM, Paul Bennett wrote: > On Oct 15, 2016 13:01, "Jeffrey Kegler" > wrote: > > > > Re #4, why not implement Perl regexes? A full syntax of Perl reg

Re: Java 8 Parser

2016-10-15 Thread Paul Bennett
On Oct 15, 2016 13:01, "Jeffrey Kegler" wrote: > > Re #4, why not implement Perl regexes? A full syntax of Perl regexes is gruesomely complex, and much of it is symptoms rather than features. Somewhere deep within perldoc there's a howto on making your own \p{} named properties, which AFAICT are

Re: Java 8 Parser

2016-10-15 Thread Jeffrey Kegler
And here's another tutorial with a short example of external lexing: http://jeffreykegler.github.io/Ocean-of-Awareness-blog/individual/2013/06/mixing-procedural.html On Sat, Oct 15, 2016 at 4:12 AM, Harry wrote: > Thanks, Jeffrey, for your responses. > > I've gone through the documentation of Ma

Re: Java 8 Parser

2016-10-15 Thread Jeffrey Kegler
Re #4, why not implement Perl regexes? A full syntax of Perl regexes is gruesomely complex, and much of it is symptoms rather than features. But some of the features *are* useful, including eager matching, which is what your example depends on. The obstacle is that Perl regexes are deterministic

Re: Java 8 Parser

2016-10-15 Thread Jeffrey Kegler
Here's a tutorial for small example of external lexing aka procedural parsing: http://jeffreykegler.github.io/Ocean-of-Awareness-blog/individual/2013/04/procedural.html On Sat, Oct 15, 2016 at 4:12 AM, Harry wrote: > Thanks, Jeffrey, for your responses. > > I've gone through the documentation o

Re: Java 8 Parser

2016-10-15 Thread Harry
Thanks, Jeffrey, for your responses. I've gone through the documentation of Marpa::R2::Scanless::R but it's not becoming fully clear how to 'connect' the external lexing routine of mine to Marpa's built-in G1 parser. I've looke

Re: Java 8 Parser

2016-10-13 Thread Jeffrey Kegler
the beginner's example of the expression >> calculator; was also able to make small changes to it. So far, so good. >> >> However, now, I'm trying to write a Java 8 Parser using the grammar >> published here: >> https://docs.oracle.com/javase/specs/jls/s

Re: Java 8 Parser

2016-10-13 Thread Jeffrey Kegler
tion, it looks extremely > awesome. > > I'm also done playing with the beginner's example of the expression > calculator; was also able to make small changes to it. So far, so good. > > However, now, I'm trying to write a Java 8 Parser using the grammar > publishe

Java 8 Parser

2016-10-13 Thread Harry
Hello, I'm very new to Marpa but, from its description, it looks extremely awesome. I'm also done playing with the beginner's example of the expression calculator; was also able to make small changes to it. So far, so good. However, now, I'm trying to write a Java 8 Pars