-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|466|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Showcase Home -> Functions Libraries

HoboBen
Created : 30 June 2010
Edited : 23 July 2010
System : Windows
Language : Cobra

Lexini - ini file parser

Lexini is an open source library that can parse .ini files for the Cobra Programming Language.

Lexini updates
Screenshots
Lexini is an open source library that can parse .ini files for the Cobra Programming Language.

With a full lexer, tokeniser and parser, Lexini is robust enough to handle any syntax errors - and provides helpful feedback on the exact nature and location of the error.

In addition to the usual integer, string and floating-point variables, Lexini supports binary (e.g. %101011) and hexadecimal (e.g. #FFF) values.

Variables are seamlessly coerced into the requested data type, e.g. a hex value of #FF will return 255 as an integer, but "#FF" as a string. A TRUE/FALSE boolean flag returns "TRUE" or "FALSE" as a string.

Comments


Friday, 23 July 2010, 09:56
HoboBen
Bug fixes:

  • Now accepts empty strings
  • Backslashes as an escape character now work as you would expect

Also, hope you don't mind but rather than come here to fix the direct download link every time I update it, I'm just linking to the page on my website. It's easier if I can just update that one page when new versions are released.