Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Parsing complex structured text data?

0
Posted

Parsing complex structured text data?

0

If there is already a specialized parser for your particular data, use that – that is, don’t create another XML parser! For the special case of Windows .INI files and Unix configuration files, consider the Penlight pl.config module. Lua is strong at text processing – you can use the built-in string patterns, PCRE regular expressions, or Lpeg. Sometimes a lexical scanner gives a cleaner solution than pattern matching. This works particularly well if your ‘complex structured text’ is Lua or C code.

0

If there is already a specialised parser for your particular data, use that – that is, don’t create another XML parser! For the special case of Windows .INI files and Unix configuration files, consider the Penlight pl.config module. Lua is strong at text processing – you can use the built-in string patterns, PCRE regular expressions, or Lpeg. Sometimes a lexical scanner gives a cleaner solution than pattern matching. This works particularly well if your ‘complex structured text’ is Lua or C code.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123