using System.Text;
using Canon.Core.SemanticParser;
namespace Canon.Core.CodeGenerators;
///
/// 构建C语言代码
///
public class CCodeBuilder
{
private readonly StringBuilder _builder = new();
///
/// 符号表
///
public SymbolTable SymbolTable { get; } = new();
public void AddString(string code)
{
_builder.Append(code);
}
public string Build()
{
return _builder.ToString();
}
}