Skip to main content

A general-purpose computer algebra system.

Project description

Workflows Pypi Installs Latest Version Supported Python Versions

Packaging status

Mathics Scanner

This is the tokeniser or scanner portion for the Wolfram Language.

As such, it also contains a full set of translation between Wolfram Language named characters, their Unicode/ASCII equivalents and code-points.

Uses

This is used as the scanner inside Mathics but it can also be used for tokenizing and formatting Wolfram Language code. In fact we intend to write one. This library is also quite usefull if you need to work with Wolfram Language named character and convert them to various formats.

Usage

  • For tokenizing and scanning Wolfram Language code, use the mathics_scanner.tokenizer.Tokenizer class.

  • To convert between Wolfram Language named characters and Unicode/ASCII, use the mathics_scanner.characters.replace_wl_with_plain_text and mathics_scanner.characters.replace_unicode_with_wl functions.

  • To convert between qualified names of named characters (such FormalA for \[FormalA]) and Wolfram’s internal representation use the m̀athics_scanner.characters.named_characters dictionary.

To regenerate scanner tables run:

$ mathics-generate-json-table

Implementation

For notes on the implementation of the packages or details on the conversion scheme please read implementation.rst.

Contributing

Please feel encouraged to contribute to this package or Mathics! Create your own fork, make the desired changes, commit, and make a pull request.

License

Mathics is released under the GNU General Public License Version 3 (GPL3).

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

Mathics_Scanner-1.1.1.tar.gz (78.1 kB view details)

Uploaded Source

Built Distributions

Mathics_Scanner-1.1.1-py3.9.egg (72.9 kB view details)

Uploaded Source

Mathics_Scanner-1.1.1-py3.8.egg (73.0 kB view details)

Uploaded Source

Mathics_Scanner-1.1.1-py3.7.egg (72.9 kB view details)

Uploaded Source

Mathics_Scanner-1.1.1-py3.6.egg (73.4 kB view details)

Uploaded Source

Mathics_Scanner-1.1.1-py3-none-any.whl (68.2 kB view details)

Uploaded Python 3

Mathics_Scanner-1.1.1-py2.py3-none-any.whl (68.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file Mathics_Scanner-1.1.1.tar.gz.

File metadata

  • Download URL: Mathics_Scanner-1.1.1.tar.gz
  • Upload date:
  • Size: 78.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.3

File hashes

Hashes for Mathics_Scanner-1.1.1.tar.gz
Algorithm Hash digest
SHA256 8c9a71d960b8b41d2d12dd8d236da48ab8a847b2a1169e75c86307564d172ba8
MD5 4aeaea61cea9047bf6045b0f080613de
BLAKE2b-256 41493f938111dfe49ac02d96903d6185c8656d27c4e1b0295fdff690279760df

See more details on using hashes here.

Provenance

File details

Details for the file Mathics_Scanner-1.1.1-py3.9.egg.

File metadata

  • Download URL: Mathics_Scanner-1.1.1-py3.9.egg
  • Upload date:
  • Size: 72.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.3

File hashes

Hashes for Mathics_Scanner-1.1.1-py3.9.egg
Algorithm Hash digest
SHA256 aa519f39a3ee9d1312ee16a18736bb9dfb91a4c52af3d576b3da0dcae3bb2177
MD5 aedc513485866c551b153e3314a04873
BLAKE2b-256 60f7d7ce652893d4f5bda67951b895cb7899882033784630be79268761df08f2

See more details on using hashes here.

Provenance

File details

Details for the file Mathics_Scanner-1.1.1-py3.8.egg.

File metadata

  • Download URL: Mathics_Scanner-1.1.1-py3.8.egg
  • Upload date:
  • Size: 73.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.3

File hashes

Hashes for Mathics_Scanner-1.1.1-py3.8.egg
Algorithm Hash digest
SHA256 2c3ab5aace88660fdb3a8a273c97e349056010d5ac364963a9052bc455a52148
MD5 3bafb14fb14136b029a4ec6bc2bf79eb
BLAKE2b-256 6b0fd6227ee5d14040fe24e3d8579892846b34e4c8f34207004a3d78c316e468

See more details on using hashes here.

Provenance

File details

Details for the file Mathics_Scanner-1.1.1-py3.7.egg.

File metadata

  • Download URL: Mathics_Scanner-1.1.1-py3.7.egg
  • Upload date:
  • Size: 72.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.3

File hashes

Hashes for Mathics_Scanner-1.1.1-py3.7.egg
Algorithm Hash digest
SHA256 01a532b98ec85bfc2518205af1ccab56c4ae33eded06404dd460d20e9251bb36
MD5 a6e19fc700024182803ccea01a7ad5d3
BLAKE2b-256 b0b2047e3325f32871d6c2dd62bf4def613a905bc849c57657a8cf6a4eafdaa1

See more details on using hashes here.

Provenance

File details

Details for the file Mathics_Scanner-1.1.1-py3.6.egg.

File metadata

  • Download URL: Mathics_Scanner-1.1.1-py3.6.egg
  • Upload date:
  • Size: 73.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.3

File hashes

Hashes for Mathics_Scanner-1.1.1-py3.6.egg
Algorithm Hash digest
SHA256 66bedfd7f861252d0d6f9c4527d1b033a37353ad53151339449a4205a38148f4
MD5 b518a16be929cdab879445d7ab6bf009
BLAKE2b-256 48f34f6a944c1c74ade3ec2f3a230c83bccdaf2fdbb2bef4ca9c4b437ee2ae47

See more details on using hashes here.

Provenance

File details

Details for the file Mathics_Scanner-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: Mathics_Scanner-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 68.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.3

File hashes

Hashes for Mathics_Scanner-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9993744f725f2d893c61917d72b12e1ba5bfb13526bdaf697516c8c765a87ca
MD5 5a0a415876887569916a0c449b64aab0
BLAKE2b-256 aabac3ba201137cc4952d45d6e8d76112879b769e9b03bd767f04ac827fdd833

See more details on using hashes here.

Provenance

File details

Details for the file Mathics_Scanner-1.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: Mathics_Scanner-1.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 68.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.3

File hashes

Hashes for Mathics_Scanner-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ce1386973205a94ac507d06d1b897acf50e9ae4aa2f328571035e10ad71e12d8
MD5 c4e8c22caddfc3e74c0d78b9290ae880
BLAKE2b-256 410b99f138659b91ac57bc8de2cb32762fc456eea84bb79a85a1417ee19f0730

See more details on using hashes here.

Provenance

Supported by

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