Beispiel #1
0
 /**
  * Creates a Parser with location counter set to 0, ready to parse a single soure file.
  *
  * @refcode N/A
  * @errtest
  *  N/A
  * @errmsg
  *  N/A
  * @author Mark Mathis
  * @creation April 8, 2011
  * @modlog
  * @teststandard Andrew Buelow
  * @codestandard Mark Mathis
  */
 public Parser()
 {
     Logger.Log("Creating Parser object.", "Parser");
     directiveList = Directives.GetInstance();
     instructionList = Instructions.GetInstance();
     LC = "0";
 }
Beispiel #2
0
        /**
         * This is called to retrieve or create the single instance of the Directives class.
         *
         * @refcode N/A
         * @errtest
         *  N/A
         * @errmsg
         *  N/A
         * @author Mark Mathis
         * @creation April 8, 2011
         * @modlog
         * @codestandard Mark Mathis
         * @codestandard Andrew Buelow
         */
        public static Directives GetInstance()
        {
            if (Directives.instance == null)
            {
                Directives.instance = new Directives();
            }

            return Directives.instance;
        }