Re: Moderately low-hanging fruit: Statistics Language

2014-01-15 Thread Paul Bennett
On Wed, Jan 15, 2014 at 5:28 AM, Paul Bennett paul.w.benn...@gmail.com wrote: See the pre-print and slides here: http://ashishagarwal.org/2011/10/04/pdf-type-theory/ Basically, the author describes a DSL for describing statistical distributions, and programming techniques for turning those

Re: Back on the SGML trail ...

2014-03-09 Thread Paul Bennett
On Wed, Feb 26, 2014 at 12:05 PM, Jeffrey Kegler jeffreykeg...@jeffreykegler.com wrote: Looking at it, I noticed there seems to be no test suite. Test suites are worth the trouble. Test suites for SGML parsing are are _hard_. I've tried getting one going using vanilla Docbook, and I can't

Yet another ambitious project

2014-07-17 Thread Paul Bennett
Hi all, I've started working here https://gist.github.com/PWBENNETT/8435996 on a practical grammar for the language described here http://ashishagarwal.org/2011/10/04/pdf-type-theory/ Trouble is, I don't (yet) understand the math in the above paper well enough to know whether I'm actually on the

Re: Yet another ambitious project

2014-07-20 Thread Paul Bennett
In the paper's if X then Y else Z, X seems to be a (bound) variable (not sure if/how they convert it to boolean, perhaps by whether it has PDF or not), while it is a comparison in the grammar. The name comparison is just a notational thing for my convenience. Oh, but yes. Yes, indeed.

Re: Python port of Libmarpa?

2014-11-09 Thread Paul Bennett
Well, how about that? I was just going to SWIG the low-level C code, and build a method-compatible API suite on top. I'll have to check out this guy's work for sure. On Sun, Nov 9, 2014 at 9:55 PM, Jeffrey Kegler jeffreykeg...@jeffreykegler.com wrote: [ Warning: family unfriendly repo name ]

Re: OPML: Another XML-based markup language

2014-11-12 Thread Paul Bennett
On Tue, Nov 11, 2014 at 5:09 PM, Ron Savage r...@savage.net.au wrote: https://en.wikipedia.org/wiki/OPML Interesting, and I suspect JD will have things to say. For me, it's just a sad reminder that my SGML implementation hasn't been worked on in far too long. I really need to get into a room

Re: Emacs marpa-mode

2015-11-21 Thread Paul Bennett
On Fri, Nov 20, 2015 at 4:33 PM, Jeffrey Kegler wrote: > Kind of nice the way that the colors distinguish G1 and L0 rules. I haven't played with my TextMate / SublimeText highligher for Marpa in a long time. I agree it's a nice touch. I'm looking at implementing

Re: SLIF style guide / best practices?

2015-11-22 Thread Paul Bennett
On Nov 22, 2015 4:10 PM, "Ron Savage" wrote: > > I always try to write the ::= rules top-down, and then list the ~ rules alphabetically. This has turned out very well, for me at least. > Sounds sensible. In my (admittedly gargantuan) grammar linked above, do any of you have

Re: Emacs marpa-mode

2015-11-21 Thread Paul Bennett
On Sat, Nov 21, 2015 at 3:17 PM, Paul Bennett <paul.w.benn...@gmail.com> wrote: > https://gist.github.com/PWBENNETT/0e860d907fc59554f1ce Ooh, I don't support comments with that. Working on it. -- Paul -- You received this message because you are subscribed to the Google Groups &quo

Re: Emacs marpa-mode

2015-11-21 Thread Paul Bennett
On Sat, Nov 21, 2015 at 3:42 PM, Paul Bennett <paul.w.benn...@gmail.com> wrote: > https://github.com/PWBENNETT/MarpaX-SGML/blob/master/Marpa.tmLanguage And here it is in action: https://drive.google.com/file/d/0B21ee_I1WzbwNFlVdXE5T2dMQnM/view?usp=sharing Apologies for the many em

Re: Emacs marpa-mode

2015-11-21 Thread Paul Bennett
On Sat, Nov 21, 2015 at 3:35 PM, Paul Bennett <paul.w.benn...@gmail.com> wrote: > > Ooh, I don't support comments with that. Working on it. > Here, and in its semi-proper location instead of as a gist ... https://github.com/PWBENNETT/MarpaX-SGML/blob/master/Marpa.tmLanguage -

ANNOUNCE: Gloria has begun

2016-02-05 Thread Paul Bennett
Work has finally begun in earnest on my log analyzer that I promised to work on "one day" back when I started to get into Marpa . There's not much to see yet, aside from one work-in-progress "input config" file. Input config spec coming soon -- as soon as I've nailed down what input specs need to

Re: Switching between grammars in one parse

2017-02-21 Thread Paul Bennett
Any good examples of mixing grammars? In my "main" grammar I have :discard ~ whitespace (etc), but in the XPath spec whitespace seems to be significant. I'm obviously behind the times ... I guess I could use "..." around my XPath expressions and treat them as blind strings handled by the

Switching between grammars in one parse

2017-02-21 Thread Paul Bennett
I'm writing a tinylang. One of the things the lang needs is a token "XPath", which parses as per the w3c XPath spec, which is highly different to the rest of the language spec. I plan to approach it by writing two grammars. It seems the words for me to grep the pod for are "pause" and "expect" if

To mark the occasion, a short composition

2016-10-24 Thread Paul Bennett
:discard ~ whitespace ~ [\p{Separator}]+ S ::= H B J H ::= 'Very' H | 'Happy' B ::= 'Birthday,' J ::= 'Illustrious Idiosyncrat' | 'Jeffrey' -- P/PW/PWBENNETT -- You received this message because you are subscribed to the Google Groups "marpa parser" group. To unsubscribe from this

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

Wrapping other parser engines

2018-02-13 Thread Paul Bennett
Good, so to speak. Thanks for your guidance, -- Paul Bennett P/PW/PWBENNETT -- 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...@go