summaryrefslogtreecommitdiff
path: root/doc/runtime-api.html
diff options
context:
space:
mode:
authorKrasimir Angelov <kr.angelov@gmail.com>2017-08-30 11:22:32 +0200
committerKrasimir Angelov <kr.angelov@gmail.com>2017-08-30 11:22:32 +0200
commit19613a76ab843be9370ca250e5989e5980eaaadc (patch)
treec9d7f00b4a1396bbb83ed734d55b4f5f65c694ce /doc/runtime-api.html
parentdd8a9ed587ef4f30fd8dba67abce6d348362e2e3 (diff)
document embedding in C#
Diffstat (limited to 'doc/runtime-api.html')
-rw-r--r--doc/runtime-api.html14
1 files changed, 14 insertions, 0 deletions
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));
</pre>
</p>
</span>
+<span class="csharp">
+<p>In C# you first have to <tt>embed</tt> the grammar by calling:
+<pre class="csharp">
+dynamic g = gr.Embed()
+</pre>
+</p>
+<p>Now creating new trees is just a matter of calling ordinary C#
+methods:
+<pre class="csharp">
+Console.WriteLine(g.DetCN(quant,e))
+DetCN (DetQuant IndefArt NumSg) (AdjCN (PositA red_A) (UseN house_N))
+</pre>
+</p>
+</span>
<span class="python">
<p>