-
Notifications
You must be signed in to change notification settings - Fork 0
ParseHelper
asyndeton edited this page Jul 14, 2016
·
3 revisions
ParseHelper ist eine Hilfsschicht oberhalb von ParseSource. ParseHelper bekommt im Konstruktor eine beliebige ParseSource-Instanz übergeben und stellt aufbauend darauf komplexere Methoden zur Verfügung. Der Bequemlichkeit halber werden auch die Methoden von ParseSource nach außenhin zur Verfügung gestellt, einfach durch Durchreichung an die innere ParseSource-Instanz.
Die neuen Member von ParseHelper sind die folgenden:
// Check if current char is some kind of white space
public boolean isWhite() throws ParseException;
// Skip white space, if there is any
public void skipWhite() throws ParseException;
// Ensures that there is a gap between two words, e.g. "test template"
// but not "testtemplate". However, in front of special characters like
// +, -, {, }, etc. no space is enforced.
public void forceGap() throws ParseException;
// Read a double-quoted string. The sequences \\ and \" are treated as expected.
public String quotedString() throws ParseException;
// Read a braced block that may contain Java code; inner braces are counted,
// except in quoted strings and Java comments (// or /* */)
public String bracedBlock() throws ParseException;
\o/ Two Finger Joe \o/
Verzeichnis
Catalogue
- [Dateiformat](Catalogue.cfg Format)
- ParseSource
- ParseHelper
- CatalogueReader
- Catalogue, Project, ...
Controller
- Logic
- [Main Controller](Main Controller)
- [Project Controller](Project Controller)
File Interaction
Tracking