Skip to content

A small general purpose lexer, designed to be inherited. The python lexer is also available in this repository.

Notifications You must be signed in to change notification settings

MrXerios/SimpleLexer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

SimpleLexer

A small general purpose lexer, designed to be inherited. The python lexer is also available in this repository. This lexer is heavily inspired by Pygments, though it is a simpler version I wanted to code myself.

The file lexer/unistring.py is directly sources from the Pygments project (https://github.com/pygments/pygments/tree/master/pygments)

TODO

  • Improve soft-keyword processing (matche..case),
  • Change float number recognition to find .05 and 3e8 properly,
  • Add type hints recognition (-)
  • Better docstring / comments to explain what is going on. The goal is to be able to come back to this in 6 months and not struggle to pick it back up.

About

A small general purpose lexer, designed to be inherited. The python lexer is also available in this repository.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages