Text - Structure


When you find structure in a text file means that it describes a language.

It can be loosely language such as:


The schema is expressed generally via Regular Expressions.

For computer language, a grammar is composed of parsing rule that are just Regular Expressions

But you may find parser that defines the structure manually at hand in the code for more grain control.

A regular expression is implemented as finite automata that's why when parsing any type of text (xml, json,..) with a library you are going from state to state.

Powered by ComboStrap