praktikum.matrix
Class Parser
java.lang.Object
|
+--praktikum.matrix.Parser
- public class Parser
- extends Object
Die Klasse Parser wandelt einen String in einen Term um. s. Editor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Parser
public Parser()
setVariable
public static Variable setVariable(String name,
Term t)
throws IllegalStructureException,
IllegalLatexRepresentationException
- Setzt eine Variable.
- Parameters:
name
- Name der Variable.term
- Term- Returns:
- die gesetzte Variable
getVariables
public static Hashtable getVariables()
- Liefert einen Hashtable aller Variablen.
readMap
public static void readMap(String fileName)
throws IOException
- Liest die Konfigurationsdatei der Operatoren ein.
- Throws:
IOException
- falls Konfigurationsdatei fehlerhaft
checkVariable
public static boolean checkVariable(String v)
parse
public static Term parse(String str)
throws ParserException
- Wandelt einen String in einen Term um.
- Parameters:
str
- umzuwandelnder String- Returns:
- term Term
- Throws:
ParserException
- falls Übersetzung fehlerhaft