public override void Visit(Concatenate node)
        {
            AcpiObject.AcpiObject leftObj  = thread.Pop().Read();
            AcpiObject.AcpiObject rightObj = thread.Pop().Read();

            if (leftObj is AcpiObject.String)
            {
                string leftStr  = leftObj.GetAsString().Value;
                string rightStr = rightObj.GetAsString().Value;
                thread.Push(new ValueIoLocation(new AcpiObject.String(leftStr + rightStr)));
            }
            else
            {
                throw new InterpretException("Concatenate only implemented for strings");
            }
        }
Example #2
0
 public override void Write(AcpiObject value)
 {
     this.contents = value.GetAsString().Value;
 }