Package net.aifusion.asn
Class AsnParser
java.lang.Object
net.aifusion.asn.AsnParser
Class to construct AST for ASN.1 Specifications
- Author:
- Sharad Singhal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the symbol table being used by the parserstatic voidParse a file for ASN.1 ModulesParse a file for ASN.1 Modulesstatic voidshowTree(AsnNode n, String indent, PrintStream f) Create a tree representation of all nodes in the query parse tree
-
Constructor Details
-
AsnParser
public AsnParser()Class to build an ASN.1 Syntax tree
-
-
Method Details
-
getSymbolTable
Get the symbol table being used by the parser- Returns:
- - symbolTable for the parser
-
parse
Parse a file for ASN.1 Modules- Parameters:
s- - String containing definitions- Returns:
- root node of the AST
-
parse
Parse a file for ASN.1 Modules- Parameters:
file- - file containing definitions- Returns:
- - root node of the AST
-
showTree
Create a tree representation of all nodes in the query parse tree- Parameters:
n- - current node to be representedindent- - current level of indentf- - printstream to write output
-
main
- Parameters:
args- input arguments
-