Class AsnParser

java.lang.Object
net.aifusion.asn.AsnParser

public class AsnParser extends Object
Class to construct AST for ASN.1 Specifications
Author:
Sharad Singhal
  • Constructor Details

    • AsnParser

      public AsnParser()
      Class to build an ASN.1 Syntax tree
  • Method Details

    • getSymbolTable

      public SymbolTable getSymbolTable()
      Get the symbol table being used by the parser
      Returns:
      - symbolTable for the parser
    • parse

      public AsnNode parse(String s)
      Parse a file for ASN.1 Modules
      Parameters:
      s - - String containing definitions
      Returns:
      root node of the AST
    • parse

      public AsnNode parse(File file)
      Parse a file for ASN.1 Modules
      Parameters:
      file - - file containing definitions
      Returns:
      - root node of the AST
    • showTree

      public static void showTree(AsnNode n, String indent, PrintStream f)
      Create a tree representation of all nodes in the query parse tree
      Parameters:
      n - - current node to be represented
      indent - - current level of indent
      f - - printstream to write output
    • main

      public static void main(String[] args)
      Parameters:
      args - input arguments