2 unstable releases

0.2.0 Oct 12, 2024
0.1.1 May 17, 2021
0.1.0 May 17, 2021

#761 in Data structures

Download history 2/week @ 2024-09-18 10/week @ 2024-09-25 9/week @ 2024-10-02 133/week @ 2024-10-09 16/week @ 2024-10-16

151 downloads per month
Used in rslnp

MIT/Apache

7KB
103 lines

This crate just contains a simple token list data structure, which is a list of tokens. Token lists are basically a simple version of symbolic expressions, but can only contain symbols or expressions. This behavior might be extended in the future to also support custom data if it's helpful for some contexts.

It was meant to be used by multiple libraries. For example, there could be multiple parsers, all using this library as backends and generating token lists, and multiple libraries using these lists, for example as markup format to display something or as programming langauge, which they interpret or compile.

This way, developers can separate their langauge representation from their langauge logic, and users can just combine the internal logic and the representation from their favorite languages written this way.

But now you should rather use the token parser, which is similar, but includes utilities for conversion.

If you want to work with token lists directly, you should probably use this. Both libs are even compatible.

Dependencies

~105KB