GSoC 2010 – week summary: July 19th – July 25th
This week I was working on the parsers: NumberParser and DatetimeParser. When I’ve decided how should they look I started to implement them. Parsers will have two modes of work: strict and lenient. In strict mode, parser tries to match elements of provided string exactly as they are defined in the format (pattern). In lenient mode parser will try to do it’s best in order to read the value.
I managed to implement the strict modes for both NumberParser and DatetimeParser (r4903). They use parsed formats accordingly from NumbersReader and DatesReader, and try to match particular elements of the format. If something goes wrong, FALSE is returned.
Parses do not follow full specification of CLDR for numbers and datetime, as Readers don’t do it either. But the most important features are supported.
Next week I will improve some parts of existing code (especially DatetimeParser as I have some ideas, and I think I will change Readers too). Also, the tests for parsers need to be extended. Then I will work on the lenient parsing in order to provide at least a little bit of loose matching.
According to the timeline less than 4 weeks of GSoC left. When I finish the parsers, I will work on the number and datetime Validators for FLOW3. After that, if all goes right I will have almost 2 weeks for documentation and for improvements in various parts of the code. For example, I need to think about the Translate Fluid viehelper (Bastian helped me with this a lot, thank you!).