-
Notifications
You must be signed in to change notification settings - Fork 2
Getting started
skytomo edited this page Mar 20, 2019
·
1 revision
Well then, let's begin.
It can be downloaded from Nuget.
- In Solution Explorer, right-click References for the project you want to download Lojban and choose Manage NuGet Packages.
- Choose "nuget.org" as the Package source, select the Browse tab, search for Lojban, select that package in the list, and select Install.
- Accept any license prompts.
- (Visual Studio 2017) If prompted to select a package management format, select PackageReference in project file.
- If prompted to review changes, select OK.
Let's start with Lojban analysis.
- Please download la ilmentufa from here.
- Set the downloaded folder to "./bin/Debug" or "./bin/Release".
- Write code:
using Lojban;
using System;
namespace LojbanTest
{
class Program
{
[STAThread]
static void Main(string[] args)
{
var text = "la.alis.co'a tatpi lo nu zutse lo rirxe korbi re'o lo mensi gi'e zukte fi no da";
text = "coi";
var parser = new LojbanParser();
parser.ParserFile = "camxes";
var result = parser.Parse(text);
Console.WriteLine(result);
}
}
}