Package examples.demo
Some demonstrations of using the main features of Java APG and some timing tests using UDTs.
The source code should be consulted for details.
Disclaimer: This example should not be considered as part of the Java APG API. Backward compatibility or even the existance of this example from version to version is not guaranteed.
-
Class Summary Class Description DisplayAst A simple demonstration of how to generate and display an Abstract Syntax Tree (AST).DisplayTrace A simple demonstration of how to display the trace of the parser's path through the syntax tree.Expressions This class has been generated automatically from an SABNF grammar by theGenerator
class of Java APG, Version 1.1.0.
It is an extension of theGrammar
class containing additional members and enums not found in the base class.
The functionExpressions.getInstance()
will return a reference to a static, singleton instance of the class.Hostname This class has been generated automatically from an SABNF grammar by theGenerator
class of Java APG, Version 1.1.0.
It is an extension of theGrammar
class containing additional members and enums not found in the base class.
The functionHostname.getInstance()
will return a reference to a static, singleton instance of the class.IPv4 This class has been generated automatically from an SABNF grammar by theGenerator
class of Java APG, Version 1.1.0.
It is an extension of theGrammar
class containing additional members and enums not found in the base class.
The functionIPv4.getInstance()
will return a reference to a static, singleton instance of the class.TranslateAst A demonstration of how to use AST callback functions to translate the AST.UdtAsAlt This is a demonstration of how to use a UDT as a specialized alternate (ALT) operation.UdtToAst This example demonstrates how to add nodes to the AST from a UDT.UExpressions This class has been generated automatically from an SABNF grammar by theGenerator
class of Java APG, Version 1.1.0.
It is an extension of theGrammar
class containing additional members and enums not found in the base class.
The functionUExpressions.getInstance()
will return a reference to a static, singleton instance of the class.UHostname This class has been generated automatically from an SABNF grammar by theGenerator
class of Java APG, Version 1.1.0.
It is an extension of theGrammar
class containing additional members and enums not found in the base class.
The functionUHostname.getInstance()
will return a reference to a static, singleton instance of the class.UIPv4 This class has been generated automatically from an SABNF grammar by theGenerator
class of Java APG, Version 1.1.0.
It is an extension of theGrammar
class containing additional members and enums not found in the base class.
The functionUIPv4.getInstance()
will return a reference to a static, singleton instance of the class. -
Enum Summary Enum Description Expressions.RuleNames This enum provides easy to remember enum constants for locating the rule identifiers and names.Expressions.UdtNames This enum provides easy to remember enum constants for locating the UDT identifiers and names.Hostname.RuleNames This enum provides easy to remember enum constants for locating the rule identifiers and names.Hostname.UdtNames This enum provides easy to remember enum constants for locating the UDT identifiers and names.IPv4.RuleNames This enum provides easy to remember enum constants for locating the rule identifiers and names.IPv4.UdtNames This enum provides easy to remember enum constants for locating the UDT identifiers and names.UExpressions.RuleNames This enum provides easy to remember enum constants for locating the rule identifiers and names.UExpressions.UdtNames This enum provides easy to remember enum constants for locating the UDT identifiers and names.UHostname.RuleNames This enum provides easy to remember enum constants for locating the rule identifiers and names.UHostname.UdtNames This enum provides easy to remember enum constants for locating the UDT identifiers and names.UIPv4.RuleNames This enum provides easy to remember enum constants for locating the rule identifiers and names.UIPv4.UdtNames This enum provides easy to remember enum constants for locating the UDT identifiers and names.