TranslationUnit
using CLanguage.Compiler;
using System;
namespace CLanguage.Syntax
{
public class TranslationUnit : Block
{
public string Name { get; }
public TranslationUnit(string name)
: base(VariableScope.Global)
{
if (string.IsNullOrWhiteSpace(name))
throw new ArgumentException("Translation unit name must be specified", "name");
Name = name;
}
public override string ToString()
{
return Name;
}
}
}