Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jakeroggenbuck/plrs

The multi-tool of lexical analysis and tokenization. Make parsers in less time for many use cases.
https://github.com/jakeroggenbuck/plrs

language lexer python rust

Last synced: 5 days ago
JSON representation

The multi-tool of lexical analysis and tokenization. Make parsers in less time for many use cases.

Awesome Lists containing this project

README

        

# plrs ![Version](https://img.shields.io/pypi/v/plrs)
The multi-tool of lexical analysis and tokenization.

# Install
```
pip install plrs
```

# Build
```
maturin build
```
# Examples
- [zipfs-law](https://github.com/JakeRoggenbuck/zipfs-law)

# API
#### Global variables
```
EOF_TOKEN
```

#### Classes
```
Tokens
Settings
Token
- part
- token
- set_part
- set_token
- __str__
- __repr__

Lexer
- new
- char_forward
- skip_over_char_set
- next
```

#### Functions
```
is_char_symbol
is_char_operator
is_char_whitespace
is_char_numeric
is_single_quote
is_double_quote
ends_token
is_part_numeric
tokenize
```