tactic.localized

# Localized notation #

This consists of two user-commands which allow you to declare notation and commands localized to a locale.

The code is inspired by code from Gabriel Ebner from the hott3 repository.

meta def localized_attr  :
meta def get_localized (ns : list name) :

Get all commands in the given locale and return them as a list of strings

meta def open_locale_cmd (_x : interactive.parse (lean.parser.tk "open_locale")) :

Execute all commands in the given locale

meta def localized_cmd (_x : interactive.parse (lean.parser.tk "localized")) :

Add a new command to a locale and execute it right now. The new command is added as a declaration to the environment with name _localized_decl.<number>. This declaration has attribute _localized and as value a name-string pair.