Project Description

Meta# is a pattern matching library for .net, which includes a flexible grammar language, a visual studio extension and many other tools to help create custom DSLs.

metasharp-icon16.png Example

namespace Example:
  import System;
  import MetaSharp.Transformation;

  grammar HelloX < Parser:
    Main = x:Identifier -> {
      Console.WriteLine("Hello " + x + "!");
      return true;
    }
  end
end

Easily consume these grammars from a general purpose language

var g = new HelloX();
g.Parse("World");
Hello World!

Grammars sit side-by-side with general purpose code.

side-by-side.png

metasharp-icon16.png Project Details

metasharp-icon16.png Extras

Last edited Jun 11, 2011 at 4:24 PM by justinc, version 29