Parsing complex structured text data?
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.
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
- How does OR mapping deal with cases where data is not fully committed to the database? How would rollback take place on complex queries?
- If the communication between the cabinet and the SIM occurs via HTTP, how is the data protected since it is transmitted in plain text?
- Is the rack of servers located in a residence, business complex or a data center?