From 19613a76ab843be9370ca250e5989e5980eaaadc Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Wed, 30 Aug 2017 11:22:32 +0200 Subject: [PATCH] document embedding in C# --- doc/runtime-api.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/runtime-api.html b/doc/runtime-api.html index 90f862a0e..a441703f7 100644 --- a/doc/runtime-api.html +++ b/doc/runtime-api.html @@ -689,6 +689,20 @@ System.out.println(a.DetCN(quant, cn));

+ +

In C# you first have to embed the grammar by calling: +

+dynamic g = gr.Embed()
+
+

+

Now creating new trees is just a matter of calling ordinary C# +methods: +

+Console.WriteLine(g.DetCN(quant,e))
+DetCN (DetQuant IndefArt NumSg) (AdjCN (PositA red_A) (UseN house_N))
+
+

+