[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: date.js in Lua?
- From: Miles Bader <miles@...>
- Date: Tue, 20 Mar 2012 07:09:17 +0900
Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> writes:
>> With some luck, GNU date is based on a library that can be reused.
>
> It's a BISON parser. The file is parse-datetime.c in GNU coreutils.
> See a vesion at
> http://www.nongnu.org/oath-toolkit/clang-analyzer/report-5d72bY.html
The original yacc source is probably easier to read tho... :
http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f=lib/parse-datetime.y
:]
[Hmm, I guess this is a job for ... LPEG!]
-miles
--
History, n. An account mostly false, of events mostly unimportant, which are
brought about by rulers mostly knaves, and soldiers mostly fools.