PistonDevelopers / meta

A DSL parsing library for human readable text documents
MIT License
90 stars 5 forks source link

Syntax analysis for maximum look-ahead #273

Open bvssvni opened 8 years ago

bvssvni commented 8 years ago

Just an idea to keep for later.

In some formats you want to use as little memory as possible, so knowing the maximum look-ahead for each for split in the rules gives an idea about the maximum memory usage. This analysis could be done automatically from a meta syntax description.