Ejemplo n.º 1
0
 private void WriteSourceFile(LangStreamWrapper stream)
 {
     foreach (FunctionObj functionObj in _functions)
     {
         stream.NewLine();
         CppWriter.WriteFunctionString(stream, functionObj);
         stream.WriteLine("{");
         stream.WriteLine("}");
     }
 }
Ejemplo n.º 2
0
        private void WriterHeaderFile(LangStreamWrapper stream)
        {
            stream.NewLine();
            foreach (VariableObj variableObj in _variables)
            {
                CppWriter.WriteVariableString(stream, variableObj);
                stream.WriteLine(";");
            }

            stream.NewLine();
            foreach (FunctionObj functionObj in _functions)
            {
                CppWriter.WriteFunctionString(stream, functionObj);
                stream.WriteLine(";");
            }
        }