You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
662 B
30 lines
662 B
using System;
|
|
using libsex;
|
|
|
|
namespace test
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
SExpression sex = SExpression.Parse(global::test.Properties.Resources.Example);
|
|
|
|
string sex1Str = sex.ToString();
|
|
|
|
var sex2 = SExpression.Parse(sex1Str);
|
|
|
|
string sex2Str = sex2.ToString();
|
|
|
|
Console.WriteLine(sex1Str);
|
|
Console.WriteLine(sex2Str);
|
|
|
|
Console.WriteLine("----");
|
|
|
|
Console.WriteLine(sex1Str == sex2Str);
|
|
Console.WriteLine(sex.Path(0, 1, 0));
|
|
|
|
Console.ReadKey();
|
|
}
|
|
}
|
|
}
|