Py-mathics-pygments

Jul 20, 2023

Lexer and highlighter for Mathematica/Wolfram Language source code

This is a lexer and highlighter for Mathematica/Wolfram Language source code using the pygments engine.

It currently supports

  • All builtin functions in the System context including unicode symbols except those that use characters from the private unicode space e.g. [FormalA].
  • User defined symbols, including those in a context.
  • All operators including unicode operators like U+1D70B pi.
  • Comments, including multi line and nested.
  • Strings, including multi line and escaped quotes.
  • Patterns, slots including named slots #name introduced in version 10 and slot sequences.
  • Message names e.g. the ivar in Generalivar
  • Numbers including base notation e.g. 8 ^^ 23 == 19 and scientific notation e.g. 1 *^ 3 == 1000.
  • Local variables in Block, With and Module

See also https//github.com/Mathics3/mathics-pygments/



Checkout these related ports:
  • Zxing-cpp - ZXing C++ Library for QR code recognition
  • Zu-hunspell - Zulu hunspell dictionaries
  • Zu-aspell - Aspell Zulu dictionary
  • Zq - Easier and faster alternative to jq
  • Zorba - General purpose C++ XQuery processor
  • Zenxml - Simple C++ XML Processing
  • Zed - Command-line tool to manage and query Zed data lakes
  • Yq - Command-line YAML and XML processor, jq wrapper for YAML/XML documents
  • Yould - Pronounceable word generator
  • Yodl - Easy to use but powerful document formatting/preparation language
  • Yi-hunspell - Yiddish hunspell dictionaries
  • Yi-aspell - Aspell Yiddish dictionary
  • Yelp-xsl - DocBook XSLT stylesheets for yelp
  • Yelp-tools - Utilities to help manage documentation for Yelp and the web
  • Ydiff - Diff readability enhancer for color terminals