View Single Post
Join Date: Dec 2008
Posts: 7
Reputation: frencheneesz is an unknown quantity at this point 
Solved Threads: 0
frencheneesz frencheneesz is offline Offline
Newbie Poster

Re: New Parser Generator

 
0
  #4
Dec 14th, 2008
You shouldn't use broken code examples.
How is it broken? It looks perfectly valid to me, and it works. What do you suggest I do if gets and fgets crash my program?

This is _extremely_ verbose for something that just parses whitespace.
You're right. The format is much more useful for complicated wordforms - ws takes the hit so that more complicated wordforms are easier to describe.

I was thinking it might be useful to have syntax like this:

parse ws
[-> " " || "\t" || "\t"
[ return true; ]
]

Do you think that would be worth while? In other words, do you think that is acceptable verbosity?
Last edited by frencheneesz; Dec 14th, 2008 at 8:10 pm. Reason: m
Reply With Quote