Skip to main content

A lexer creation tool

Project description

Soliz - A lexer creation tool

Features

  • Provides basic implementations for: strings, integers, floats, operators, symbols
  • Soliz's abstract design allows quick and easily understandable development
  • Pretty error printing

Errors look like:

Error: Unexpected character
{"key": qas}
        ^
Occurs at: 1:9-9

WARNING: Order of the rules may matter depending on the implementation.

Builtins

Builtin rules can be located in soliz/impls.py

StringRule

This rule allows escape sequences and parses quoted strings.
Errors on invalid escape sequences.

NOTE: This rule allows newlines inside the string.

NumberRule

This rule parses integers and floats, positive or negative.

OperatorRule

Parses the following operators: +, -, *, /, ==, ^, **, %

SymbolRule

Parses the following symbols: (, ), =, . as individual token types without value.

IdentifierRule

Parses identifiers that start with _ or alphabetic characters, and continue with alphanumeric or _ characters.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

soliz-0.0.3.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

soliz-0.0.3-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file soliz-0.0.3.tar.gz.

File metadata

  • Download URL: soliz-0.0.3.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for soliz-0.0.3.tar.gz
Algorithm Hash digest
SHA256 317f06681ec8d0778de6e94cdc0ffe835beb1179ec601af41afa024bed3a5932
MD5 651421ce6de351eb0fc2961d6a1bb96e
BLAKE2b-256 cc5d1538e8ef76e58f5da9dacd79b86041ed41bf76a008a65da243b2a4cb8e3f

See more details on using hashes here.

File details

Details for the file soliz-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: soliz-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for soliz-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4bfec7f5c25201c50d5fbcd25438dbe86f6656ce3de5973f36d9ed7c08b3b6f9
MD5 522132db8188c78c00b6628574b44eab
BLAKE2b-256 157190a25a8f3a7dab6b475caaaa3b24372357013c7e9d06a0a9f35e53f7a3cb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page