yes_parser 1.0.5
yes_parser: ^1.0.5 copied to clipboard
Dart implementation of the YES scriplet standard. YES is a meta scriptlet standard whose elements and meaning are customized by the programmer. This library parses files using the YES spec and deliver [...]
1.0.5 #
- Added several tests to catch edge-cases. Found and patched:
- One named key-val pair edge-case did not parse correctly.
- We determine the best fit delimiter by token-walking when there is a potentially ambigious key-val.
- Key-vals correctly strip quoted text.
- Removed the
onComplete()callback.elementInfoListanderrorInfoListcan be directly read in the parser instead. - Remove
join()which blocked the thread until a file was parsed. - The constructors for
YesParserare nowstaticmethods which return the new parser object.
1.0.4 #
Entity.getKeyValueAsBool()parses non-zero integer values as true and zero integer values as false.- Added new tests to catch further parsing errors. Further updates will improve testing suite.
getKeyValueAsBool()now correctly setscaseSenitiveparam inbool.parse()totrue.- Added support for getKeyValueAsBool() to return true for non-zero
intvalues.
1.0.3 #
- Missed or.unquote() for Element.getKeyValue() which affected all the other keyval getters. Fixed.
1.0.2 #
- Auto-strip quotes from KeyVal values for convenience. Added an extension to the lib to easy restore them if needed.
- Inline Dart-style documentation.
1.0.1 #
- Fixed issue parsing a document by string. Constructors
fromFileandfromStringboth requireonComplete.
1.0.0 #
- Initial version.