Esempio n. 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";
 }
Esempio n. 2
0
        /**
         * Get the singleton instance of Instructions.
         *
         * @return the Instructions instance
         *
         * @refcode N/A
         * @errtest
         *  N/A
         * @errmsg
         *  N/A
         * @author Jacob Peddicord
         * @creation April 8, 2011
         * @modlog
         * @codestandard Mark Mathis
         * @teststandard Andrew Buelow
         */
        public static Instructions GetInstance()
        {
            if (Instructions.instance == null)
            {
                Instructions.instance = new Instructions();
            }

            return Instructions.instance;
        }
Esempio n. 3
0
 protected Instruction()
 {
     Type = Instructions.None;
     Left = null;
     Right = null;
 }
Esempio n. 4
0
 public Instruction(Instructions type, Operand left, Operand right)
 {
     Type = type;
     Left = left;
     Right = right;
 }