Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

RickBarretto/pyg-arturo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pygments Extension to Arturo Language

This work is in current progress

Testing Lexer

Using poetry

$ git clone https://github.com/RickBarretto/pyg-arturo
$ poetry install
$ poetry shell
# Outputs on terminal
$ poetry run pygmentize -x -l arturo.py:ArturoLexer test.art
# Outputs a html
$ poetry run pygmentize -x -f html -O full -O debug_token_types -o test.html -l arturo.py:ArturoLexer test.art

Using pipx

$ pip install --user pipx
$ pipx ensurepath
$ pipx completions
$ git clone https://github.com/RickBarretto/pyg-arturo
$ pipx install Pygments
# Outputs on terminal
$ pygmentize -x -l arturo.py:ArturoLexer test.art
# Outputs a html
$ pygmentize -x -f html -O full -O debug_token_types -o test.html -l arturo.py:ArturoLexer test.art

TODO

  • Attributes
  • Bool
  • Builtin
    • Functions
    • Predicate
  • Chars
  • Comments
  • Hashbang
  • Literal
  • Numbers
    • Float
    • Integer
  • Operators
  • Label
  • Literal
  • Sugar Syntax
  • Strings
    • Annotated Strings (Sub-languages)
    • Curly
      • Interpolation
      • Curly-Verbatin
    • End of File strings
      • Interpolation
    • Regex
      • Add regex sub-language
    • Safe Strings
      • Interpolation
    • Simple Strings
      • Interpolation
    • Smart Strings
      • Interpolation
    • Templates
      • Interpolation
  • Type

About

A Pygments' extension to Arturo Language

Topics

Resources

Stars

Watchers

Forks

Languages