www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Drat! A packrat parser!

reply 0ffh <spam frankhirsch.net> writes:
Hi,

I'm working on a packrat parser library called "Drat!".

The current version (pre-alpha) v.0.1 can be found here:

   http://wiki.dprogramming.com/Drat/HomePage

So now you cry "We have loads of parser generators already!"?

Here goes:

  * Ever wanted to be able to use &!?*+ not only in regular
    expressions, but in your *parsing_rules*?
    With Drat! you can!

  * Sick of unreadable generated parser code?
    Drat! is a library, it needs *no* code generation step!

  * Do you want to be able to understand the parser you use?
    Not all in Drat! is trivial, but you have a sporting chance!

  * Do you want your parser to be fast and linear in time?
    Drat! is!

The current (temporary) drawbacks of Drat! are:

  * Documentation is *very* sparse right now, but the example
    programme is lavishly commented.

  * No user error messages when parsing fails.

  * You *want* a code generator? Make a request! :)

Regards,

   frank / 0ffh
Oct 03 2007
parent reply Walter Bright <newshound1 digitalmars.com> writes:
0ffh wrote:
   http://wiki.dprogramming.com/Drat/HomePage
I have a couple suggestions: 1) The description in the newsgroup posting is much better than the one on the web page. 2) The phrase "D programming language" should appear on the web page, so google can find it.
Oct 03 2007
parent reply 0ffh <spam frankhirsch.net> writes:
Walter Bright wrote:
 1) The description in the newsgroup posting is much better than the one 
 on the web page.
 2) The phrase "D programming language" should appear on the web page, so 
 google can find it.
Fixed and fixed, with [Ctrl]-[C] + [Ctrl]-[V] ... the power of copying! ;-) Regards, frank
Oct 03 2007
parent reply Derek Parnell <derek psych.ward> writes:
On Thu, 04 Oct 2007 00:27:28 +0200, 0ffh wrote:

 Walter Bright wrote:
 1) The description in the newsgroup posting is much better than the one 
 on the web page.
 2) The phrase "D programming language" should appear on the web page, so 
 google can find it.
Fixed and fixed, with [Ctrl]-[C] + [Ctrl]-[V] ... the power of copying! ;-) Regards, frank
And if we are going to be picky, can you increase the contrast between the background and text please. -- Derek Parnell Melbourne, Australia skype: derek.j.parnell
Oct 03 2007
parent reply 0ffh <spam frankhirsch.net> writes:
Derek Parnell wrote:
 And if we are going to be picky, can you increase the contrast between the
 background and text please. 
Sorry, no can do - it's a Wiki, and I doubt I can hack it's style sheets. Anyways, on my screen it's black on light gray - where's the trouble? Regards, frank
Oct 03 2007
parent reply Derek Parnell <derek psych.ward> writes:
On Thu, 04 Oct 2007 02:00:40 +0200, 0ffh wrote:

 Derek Parnell wrote:
 And if we are going to be picky, can you increase the contrast between the
 background and text please. 
Sorry, no can do - it's a Wiki, and I doubt I can hack it's style sheets.
Can you ask the wiki's admin?
 Anyways, on my screen it's black on light gray - where's the trouble?
It's black on (not-so-)light gray. The background colour is #D1D1D1 and with a small font on a 19-inch monitor the edges of the text become indistinct. I changed the font to a non-serif one and that helped but the best combination was a non-serif font and a background colour of at least #F0F0F0. (Of course, this could be just my aging eyes) -- Derek Parnell Melbourne, Australia skype: derek.j.parnell
Oct 03 2007
next sibling parent 0ffh <spam frankhirsch.net> writes:
Derek Parnell wrote:
 On Thu, 04 Oct 2007 02:00:40 +0200, 0ffh wrote:
 Sorry, no can do - it's a Wiki, and I doubt I can hack it's style sheets.
Can you ask the wiki's admin?
Chris[], it's for you! =)
 (Of course, this could be just my aging eyes)
Hehe, I have quite bad eyes, that's why I use Opera. It has an excellent zooming function (altough Firebird may be getting there, in time)! Regards, frank
Oct 03 2007
prev sibling parent reply Bill Baxter <dnewsgroup billbaxter.com> writes:
Derek Parnell wrote:
 On Thu, 04 Oct 2007 02:00:40 +0200, 0ffh wrote:
 
 Derek Parnell wrote:
 And if we are going to be picky, can you increase the contrast between the
 background and text please. 
Sorry, no can do - it's a Wiki, and I doubt I can hack it's style sheets.
Can you ask the wiki's admin?
 Anyways, on my screen it's black on light gray - where's the trouble?
It's black on (not-so-)light gray. The background colour is #D1D1D1 and with a small font on a 19-inch monitor the edges of the text become indistinct. I changed the font to a non-serif one and that helped but the best combination was a non-serif font and a background colour of at least #F0F0F0. (Of course, this could be just my aging eyes)
I can read it ok, but dprogramming.com always makes me feel depressed when I go there because of that heavy gray background. --bb
Oct 03 2007
parent reply "Chris Miller" <chris dprogramming.com> writes:
 Anyways, on my screen it's black on light gray - where's the trouble?
It's black on (not-so-)light gray. The background colour is #D1D1D1 and with a small font on a 19-inch monitor the edges of the text become indistinct. I changed the font to a non-serif one and that helped but the best combination was a non-serif font and a background colour of at least #F0F0F0. (Of course, this could be just my aging eyes)
I can read it ok, but dprogramming.com always makes me feel depressed when I go there because of that heavy gray background.
How about now, does it make you happy yet? :D
Oct 04 2007
next sibling parent Bill Baxter <dnewsgroup billbaxter.com> writes:
Chris Miller wrote:
 Anyways, on my screen it's black on light gray - where's the trouble?
It's black on (not-so-)light gray. The background colour is #D1D1D1 and with a small font on a 19-inch monitor the edges of the text become indistinct. I changed the font to a non-serif one and that helped but the best combination was a non-serif font and a background colour of at least #F0F0F0. (Of course, this could be just my aging eyes)
I can read it ok, but dprogramming.com always makes me feel depressed when I go there because of that heavy gray background.
How about now, does it make you happy yet? :D
Yeh, definitely an improvement. Especially the little happy sun in the corner. :-) --bb
Oct 04 2007
prev sibling next sibling parent Derek Parnell <derek psych.ward> writes:
On Fri, 05 Oct 2007 00:08:59 -0400, Chris Miller wrote:

 Anyways, on my screen it's black on light gray - where's the trouble?
It's black on (not-so-)light gray. The background colour is #D1D1D1 and with a small font on a 19-inch monitor the edges of the text become indistinct. I changed the font to a non-serif one and that helped but the best combination was a non-serif font and a background colour of at least #F0F0F0. (Of course, this could be just my aging eyes)
I can read it ok, but dprogramming.com always makes me feel depressed when I go there because of that heavy gray background.
How about now, does it make you happy yet? :D
LOL ... give the man a cigar (or healthy equivalent). Very nice indeed. -- Derek Parnell Melbourne, Australia skype: derek.j.parnell
Oct 05 2007
prev sibling parent 0ffh <spam frankhirsch.net> writes:
Chris Miller wrote:
 How about now, does it make you happy yet? :D
Now that it's different, I admit it may have been a bit on the sombre side before.. thanks, it looks much better now! Suddenly I feel so strangely... cheerful... Drat! =) Regards, Frank
Oct 05 2007