Re: Java 8 Parser

2017-05-01 Thread Durand Jean-Damien
Hello, With Marpa::R2 it is possible to do exclusions at the lexeme level using user-defined character classes. Such an implementation was used in ECMAScript as mentionned indeed by Jeffrey, c.f;

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

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

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

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{}

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

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

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

Re: Java 8 Parser

2016-10-13 Thread Jeffrey Kegler
Your specific questions, of the top of my head: 1.) You may want to look at lexeme priorities. If not, yes, external lexing may be what you need. 2.) There are several examples of ways to write multi-line comments. One is in the FAQ:

Re: Java 8 Parser

2016-10-13 Thread Jeffrey Kegler
Javascript is not Java I know, but Jean-Damien Durand has written several full language parsers, including ECMAScript: https://github.com/jddurand/MarpaX-Languages-ECMAScript-AST On Thu, Oct 13, 2016 at 8:00 AM, Harry wrote: > Hello, > > I'm very new to Marpa but, from