lh-l4v/misc/pysymbols
Corey Richardson af60787317
various scripts: use print_function uniformly for python3 compat
2016-01-28 16:11:07 +11:00
..
isasymbols various scripts: use print_function uniformly for python3 compat 2016-01-28 16:11:07 +11:00
README.md misc: Add a Python module for dealing with Isabelle symbols. 2015-10-06 17:15:48 +11:00

README.md

Python Isabelle Symbols Module

This directory contains Python functionality for translation between Isabelle's ascii representations (e.g. \<forall>) and its unicode representations (e.g. ). You need to provide it with a copy of Isabelle's internal "symbols" file that it uses to form translation mappings.

Example usage:

import isasymbols

t = isasymbols.make_translator('/path/to/symbols')
print t.encode('\\<lbrakk>A; B\\<rbrakk> \\<Longrightarrow> A')

For anything more complicated, please consult the source.