Class Parser
- java.lang.Object
-
- com.virtuslab.using_directives.custom.Parser
-
public class Parser extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Tokens token)<T> Tenclosed(Tokens token, java.util.function.Supplier<T> callback)ReportergetReporter()<T> TinBracesOrIndented(java.util.function.Supplier<T> callback)voidnewLineOptWhenFollowedBy(Tokens token)UsingDefsparse()
-
-
-
Method Detail
-
getReporter
public Reporter getReporter()
-
accept
public void accept(Tokens token)
-
enclosed
public <T> T enclosed(Tokens token, java.util.function.Supplier<T> callback)
-
inBracesOrIndented
public <T> T inBracesOrIndented(java.util.function.Supplier<T> callback)
-
newLineOptWhenFollowedBy
public void newLineOptWhenFollowedBy(Tokens token)
-
parse
public UsingDefs parse()
-
-