Skip to content

Instantly share code, notes, and snippets.

@jediwhale
Created July 8, 2011 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jediwhale/1072761 to your computer and use it in GitHub Desktop.
Save jediwhale/1072761 to your computer and use it in GitHub Desktop.
public class PiSymbolType extends SymbolType implements Translation {
public PiSymbolType () {
super("Pi");
wikiMatcher(new Matcher().string("!pi"));
htmlTranslation(this);
}
public String toTarget(Translator translator, Symbol symbol) {
return Double.toString(Math.PI);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment