CLanguage by praeclarum

<PackageReference Include="CLanguage" Version="0.9.139" />

 IdentifierDeclarator

using System.Collections.Generic; namespace CLanguage.Syntax { public class IdentifierDeclarator : Declarator { public string Identifier { get; set; } public List<string> Context { get; } = new List<string>(); public override string DeclaredIdentifier => Identifier; public IdentifierDeclarator(string id) : base(null) { Identifier = id; } public IdentifierDeclarator Push(string id) { Context.Add(Identifier); Identifier = id; return this; } public override string ToString() { return Identifier; } } }