A
A
Andrey Vershinin2014-06-15 00:50:21
Parsing
Andrey Vershinin, 2014-06-15 00:50:21

What approach to use when creating an XML/HTML parser?

Actually, I want it to work quickly, but also without unnecessary difficulties. My first thought is a state machine with a couple of accumulator variables, processing character by character in a loop, but that doesn't seem to be the case.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-06-15
@begemot_sun

Well, in fact, any parsers are finite automata that process 1 character per cycle.
If it’s fast and without unnecessary difficulties, then probably you just shouldn’t reinvent the wheel, but look at ready-made solutions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question