Using TParser in the Classes Unit to Parse a Filter String
1 answer
TParser is used by the IDE to parse DFM files in binary format (ObjectTextToBinary). As far as I know, it only recognizes 5 tokens: (EOF, Symbol, String, Integer, Float). It's not general enough, but built on purpose. You will have to subclass it and change its implementation to suit your needs. My opinion is that it is better to just write your own class / automata for your specific purpose. (It's not even a parser, but a lexical tokenizer).
+8
a source to share