O'Reilly logo

Mastering Rust by Vesa Kaihlavirta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Parsing fundamentals

When we want to turn any sort of regular input into internal representations, we'll need to do some form of parsing. Parsing is one of the most researched topics in computer science, so a full coverage of the topic won't be feasible here. If you want to learn more about this very rich subject, I can recommend Language Implementation Patterns by Terence Parr. We'll cover some of the basics here.

It's important to learn early that while parsing and deserialization have similar themes, they are not synonymous concepts. Deserialization makes internal objects out of a stream of data (usually a string). Parsing is a more general idea of handling input data, where the end result does not have to be a set of objects.

In a simplified ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required