Skip to content

Instantly share code, notes, and snippets.

@jozefchmelar
Created November 21, 2019 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jozefchmelar/f0c184066ab4824bb6b821a8e974c6cd to your computer and use it in GitHub Desktop.
Save jozefchmelar/f0c184066ab4824bb6b821a8e974c6cd to your computer and use it in GitHub Desktop.
Irony from parse tree to AST
public class NonTerminalMd : NonTerminal
{
public NonTerminalMd(string name, Type nodeType) : base(name, nodeType)
{
AstConfig.DefaultNodeCreator = () => Activator.CreateInstance(nodeType);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment