asciimath

module
v0.0.0-...-af3c4f6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2019 License: Apache-2.0

README

ASCIIMath in Go

the scanner/symbols.go is lifts directly the array of symbol definitions https://raw.githubusercontent.com/asciimath/asciimathml/master/ASCIIMathML.js with edits to make it compile in Go.

The scanner is defined in scanner/scanner.go. It is extremely simple as it builds a regexp out of the symbols array and uses is Regexp.FindAllStringIndex to extract the tokens.

It seems to work as the tests in scanner/scanner_test.go show. Would be better to return token data rather than just token strings though!

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL