On Tue, 10 Jan 2012 23:27:52 +0800 Clark J. Wang wrote:
> On Tue, Jan 10, 2012 at 23:22, Glenn Fowler <[email protected]> wrote:
> > the parser is in -last tmxdate()
> > its add-hoc (no formal grammar)
> I suggest it be documented. I found it's very powerful and useful. :)

right now the best we have are the regression tests in the src tarball
        src/cmd/tests/date.dat
it has three tab-separated columns:
        input string, NIL to just test for parse format string
        parse format string, NIL for the $DATEMSK file, NULL for the add-hoc 
parser
        expected result
"SET NOW some-date-string" sets the reference date until the next "SET NOW ..."

_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to