Re: [Pyparsing] Debugging Pyparsing
Brought to you by:
ptmcg
From: Ralph C. <ra...@in...> - 2009-10-30 11:59:53
|
Hi Paul, > Integer form is pretty clear cut, could be added without much pain. > But should the floats include scientific notation too? Leading zero > required for floats < 1? At least one zero required after the '.'? I'd suggest adding some that match what's allowed by specific languages, e.g. C, Python. So you'd have {c,python}_{dec_,oct_,hex_,}integer, etc. Most times, a user either wants to match text from an existing language or would be happy to conform with what an existing language allows for their own languages. Cheers, Ralph. |