Changes

Jump to navigation Jump to search
4 bytes removed ,  16:28, 2 February 2020
Line 11: Line 11:     
==Example==
 
==Example==
−
  <nowiki>Table
+
  Table
−
{#I’m a comment
+
{''#I'm a comment''
−
Record SimpleValue
+
Record SimpleValue
−
Record2 “Quoted string” #Quoted strings can span multiple lines
+
Record2 "Quoted string" #Quoted strings can span multiple lines
−
Record3 5.6 #This is a simple number value
+
Record3 5.6 ''#This is a simple number value''
−
Record4 null #TyD recognizes null values
+
Record4 null ''#TyD recognizes null values''
−
List [ very ; simple; list ]
+
List [ very ; simple; list ]
−
List2
+
List2
−
[
+
[
−
“Multi line” #Remember to escape quotes in a quoted string like this \”
+
"Multi line" ''#Remember to escape quotes in a quoted string like this \"''
−
“List”
+
"List"
−
] #Lists can also have numbers
+
] ''#Lists can also have numbers''
−
ListOfTables
+
ListOfTables
−
[
+
[
−
{
+
{
−
Record “This is an anonymous table, since elements in lists can’t have names”
+
Record "This is an anonymous table, since elements in lists can't have names"
−
}
+
}
−
{
+
{
−
Record “Here’s another table”
+
Record "Here's another table"
−
}
+
}
−
]
+
]
−
SubTable
+
SubTable
−
{
+
{
−
Record “I heard you like tables”
+
Record "I heard you like tables"
−
}
+
}
−
}</nowiki>
+
}
    
==In Software Inc.==
 
==In Software Inc.==
 
Software Inc. uses a fork of Tynan’s C# implementation of TyD, which you can find [https://github.com/khornel/TyDSharp here].
 
Software Inc. uses a fork of Tynan’s C# implementation of TyD, which you can find [https://github.com/khornel/TyDSharp here].
 
If you want to know why Software Inc. switched from XML to TyD, and not something else, [https://github.com/TynanSylvester/TyD#comparisons you should read the comparison section of the TyD specification]. Other than the reasons listed, TyD resembled C# a lot, which reduces friction during development and I would rather not rely on a third party closed-source solution when parsing data.
 
If you want to know why Software Inc. switched from XML to TyD, and not something else, [https://github.com/TynanSylvester/TyD#comparisons you should read the comparison section of the TyD specification]. Other than the reasons listed, TyD resembled C# a lot, which reduces friction during development and I would rather not rely on a third party closed-source solution when parsing data.

Navigation menu