Moment
Moment copied to clipboard
Natural Language Date Parser Using Lex/Yacc/C
I've tried adding the 4 files to an existing project and it doesn't compile. It gives a bunch of 'duplicated symbols' errors for variables contained in the TimeParser file. Tried...
"0000" or "00:00" (anything with 00 as the hour) causes an error on line 178: "strncat(hr, &new[1], 2);"
It will crash when it is used in iOS SDK7: typing 123 will crash and pointing to: line 171 of tokeIt.l ``` hr[2] = ':'; strncat(hr, &new[1], 2); hr[5] =...
It would be much better if it parses something like 'pay bill #6 + #7 @9'. It seems that it ignores the time to be parsed when there is 'digit...
It would be more natural if we can assign 'next week' as 7 days from today, not on sunday? Thanks