Open Data Description Language

OpenDDL
Developed byEric Lengyel
Initial release24 September 2013; 11 years ago (2013-09-24)
Latest release
3.0
4 January 2021; 3 years ago (2021-01-04)
Type of formatData interchange
Open format?Yes
Websiteopenddl.org

The Open Data Description Language (OpenDDL) is a generic text-based language that is designed to store arbitrary data in a concise human-readable format. It can be used as a means for easily exchanging information among many programs or simply as a method for storing a program's data in an editable format.

The exact syntax of OpenDDL is described on the website openddl.org as well as in an appendix of the Open Game Engine Exchange Specification.[1]

Structures

An OpenDDL file is composed of a sequence of structures that can be either user-defined types or built-in primitive data types. The declaration of a structure consists of an identifier followed by an optional name, an optional property list, and finally, the structure's contents enclosed in braces. Raw data is always contained within structures whose identifiers are one of the data types described in the next section. For example, one may define a Point structure that holds the floating-point coordinates of a three-dimensional point as follows.

Point
{
   float {1.0, 2.0, 3.0}
}

Structures can have names that allow them to be referenced from other parts of the file. Names can be global (unique throughout the file) or local (unique within the enclosing structure). A global name consists of a dollar sign followed by an identifier, and a local name consists of a percent sign followed by a dollar sign. The Point structure above could be given the global name "position" as follows.

Point $position
{
   float {1.0, 2.0, 3.0}
}

Another structure could then include a reference to this point by using the ref data type:

ref {$position}

Data types

OpenDDL defines the 15 primitive data types described in the following table. Each type has a long name and a short name. Additionally, the floating-point types each have alternate long and short names.

Type Description
bool, b A boolean type that can have the value true or false.
int8, i8 An 8-bit signed integer that can have values in the range [−27, 27 − 1].
int16, i16 A 16-bit signed integer that can have values in the range [−215, 215 − 1].
int32, i32 A 32-bit signed integer that can have values in the range [−231, 231 − 1].
int64, i64 A 64-bit signed integer that can have values in the range [−263, 263 − 1].
uint8, u8 An 8-bit unsigned integer that can have values in the range [0, 28 − 1].
uint16, u16 A 16-bit unsigned integer that can have values in the range [0, 216 − 1].
uint32, u32 A 32-bit unsigned integer that can have values in the range [0, 232 − 1].
uint64, u64 A 64-bit unsigned integer that can have values in the range [0, 264 − 1].
half, float16, h, f16 A 16-bit floating-point type conforming to the standard S1E5M10 format.
float, float32, f, f32 A 32-bit floating-point type conforming to the standard S1E8M23 format.
double, float64, d, f64 A 64-bit floating-point type conforming to the standard S1E11M52 format.
string, s A double-quoted character string with contents encoded in UTF-8.
ref, r A sequence of structure names, or the keyword null.
type, t A type whose values are identifiers naming types in the first column of this table.
base64, z Generic binary data encoded as Base64.

Compatible Libraries

References

  1. ^ Lengyel, Eric (2021). Open Game Engine Exchange Specification, Version 3.0. Terathon Software LLC. ISBN 978-0-9858117-8-5.

Read other articles:

Cet article concerne la langue ukrainienne. Pour le peuple ukrainien, voir Ukrainiens. Ukrainienукраїнська мова Pays Ukraine, Pologne, Roumanie, Russie, Serbie, Moldavie (dont Transnistrie), Slovaquie, Biélorussie, Hongrie. Nombre de locuteurs 41 millions Typologie SVO + ordre libre, flexionnelle, accusative, accentuelle, à accent d'intensité Classification par famille - langues indo-européennes - langues balto-slaves - langues slaves - langues slaves orientales - ukrai...

 

Percussion instrument played to produce sounds of indeterminate pitch A pair of timbales, two cowbells, a jam block and a cymbal all in use as unpitched percussion Three instruments on the spectrum between pitched and unpitched: whistle, woodblocks, crotales Playⓘ An unpitched percussion instrument is a percussion instrument played in such a way as to produce sounds of indeterminate pitch, or an instrument normally played in this fashion. Unpitched percussion is typically used to maintain a...

 

Ikenai! Luna Senseiいけない!ルナ先生 MangaPengarangKamimura SumikoPenerbitKodanshaMajalahMonthly Shōnen MagazineDemografiShōnenTerbit1986 – 1988Volume5  Portal anime dan manga Ikenai! Luna Sensei (いけない!ルナ先生, Hati-Hati, Ibu Guru Luna!) adalah sebuah seri manga karya Kamimura Sumiko. Manga ini tampil secara serial dalam Monthly Shōnen Magazine yang diterbitkan oleh Kodansha, sejak 1986 hingga 1988. Karena mengandung konten sensual, seri ini masuk dalam kate...

Resistenza polaccaparte della seconda guerra mondialeSoldati nel distretto di Wola durante la rivolta di VarsaviaData27 settembre 1939-25 luglio 1945 LuogoPolonia Casus belliInvasione tedesco-slovacca della Polonia EsitoLiberazione della Polonia Schieramenti Stato Segreto Polacco  Armata Nazionale Battaglione Chłopskie Forze Armate Nazionali Governo Provvisorio della Polonia  Guardia del Popolo (1942-1944)  Armata Popolare (1944) Supporto da: Governo in esilio della Polonia...

 

AnonymousLambang yang biasanya dikaitkan dengan Anonymous. Pria tanpa kepala mewakili anonimitas dan organisasi tanpa pemimpin.[1]Para individu yang tampil di depan umum sebagai Anonymous, mengenakan topeng Guy FawkesTanggal pendirianc.  2004Tipe Nama multi guna/avatar Komunitas virtual Asosiasi sukarela Tujuan Anti-pengawasan siber Anti-sensor maya Aktivisme internet Vigilantisme internet Wilayah layanan Seluruh duniaJumlah anggota Kelompok afinitas yang terdesentralisasi Anony...

 

Salim Segaf Al-Jufri Menteri Sosial Indonesia ke-26Masa jabatan22 Oktober 2009 – 20 Oktober 2014PresidenSusilo Bambang Yudhoyono PendahuluBachtiar ChamsyahPenggantiKhofifah Indar ParawansaDuta Besar Indonesia untuk Arab Saudi dan Oman ke-16Masa jabatan12 November 2005 – 21 Oktober 2009PresidenSusilo Bambang Yudhoyono PendahuluMuhammad Maftuh BasyuniPenggantiGatot Abdullah MansyurKetua Majelis Syuro Partai Keadilan SejahteraPetahanaMulai menjabat 10 Agustus 20...

Cet article est une ébauche concernant une localité italienne et le Trentin-Haut-Adige. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Canal San Bovo Noms Nom allemand Sankt-Bartolome Kanal Administration Pays Italie Région Trentin-Haut-Adige  Province Trentin   Maire Mandat Albert Rattin 2015-2020 Code postal 38050 Code ISTAT 022038 Code cadastral B577 Préfixe tel. 0439 Démographie Gentilé cana...

 

Questa voce sull'argomento stagioni delle società calcistiche italiane è solo un abbozzo. Contribuisci a migliorarla secondo le convenzioni di Wikipedia. Segui i suggerimenti del progetto di riferimento. Voce principale: Associazione Calcio Cesena. Associazione Calcio CesenaStagione 1963-1964Sport calcio Squadra Cesena Allenatore Renato Lucchi Presidente Alberto Rognoni Serie C9º posto nel girone B Maggiori presenzeCampionato: Dianti (34) Miglior marcatoreCampionato: Badiani (13...

 

Type of clogs from the Netherlands This article is about the wooden shoe. For other uses, see Klomp (surname) and De Klomp. Dutch (poplar) clogs, for everyday use. The red painting on top makes the clogs look like leather shoes. It is a traditional motif on painted clogs. A klomp (plural klompen) is a whole-foot clog from the Netherlands. Along with tulips and windmills, they are strongly associated with the country and are considered to be a national symbol of the Netherlands. Usage Approxim...

Type of galactic nucleus The Sombrero Galaxy (M104) as observed by the Hubble Space Telescope (HST). The Sombrero Galaxy is an example of a LINER galaxy.[1] Credit: HST/NASA/ESA. A low-ionization nuclear emission-line region (LINER) is a type of galactic nucleus that is defined by its spectral line emission. The spectra typically include line emission from weakly ionized or neutral atoms, such as O, O+, N+, and S+. Conversely, the spectral line emission from strongly ionized atoms, su...

 

 烏克蘭總理Прем'єр-міністр України烏克蘭國徽現任杰尼斯·什米加尔自2020年3月4日任命者烏克蘭總統任期總統任命首任維托爾德·福金设立1991年11月后继职位無网站www.kmu.gov.ua/control/en/(英文) 乌克兰 乌克兰政府与政治系列条目 宪法 政府 总统 弗拉基米尔·泽连斯基 總統辦公室 国家安全与国防事务委员会 总统代表(英语:Representatives of the President of Ukraine) 总...

 

← червень → Пн Вт Ср Чт Пт Сб Нд           1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 2024 рік 26 червня — 177-й день року (178-й у високосні роки) в григоріанському календарі. До кінця року залишається 188 днів. Цей день в історії: 25 червня—26 червня—27 червня Зміс�...

У Вікіпедії є статті про інших людей із таким прізвищем: Райхерт. Олександр Олександрович Райхерт Загальна інформаціяНародження 21 січня 1996(1996-01-21)ХерсонСмерть 9 листопада 2014(2014-11-09) (18 років)ПіскиПоховання ХерсонПсевдо «Чорний»Військова службаРоки служби 2014Приналежніст...

 

مطار جورج بوش الدولي George Bush Intercontinental Airport   مطار جورج بوش الدولي إياتا: IAH – ايكاو: KIAH موجز نوع المطار عام المالك هيوستن  المشغل سلطة مطار هيوستن يخدم هيوستن -  الولايات المتحدة البلد الولايات المتحدة  الموقع هيوستن، تكساس الارتفاع 30 م؛ 97 قدم إحداثيات 29°59′04″N 095°20�...

 

Dorothea ErxlebenLahir13 November 1715Quedlinburg, Kerajaan PrusiaMeninggal13 June 1762 (umur 46)Quedlinburg, Kerajaan PrusiaKebangsaanGermanKarier ilmiahBidangKedokteranTerinspirasiLaura Bassi Dorothea Christiane Erxleben (nama lahir: Leporin; 13 November 1715 - 13 Juni 1762[1]) adalah dokter medis wanita pertama di Jerman, sekaligus wanita pertama yang mendapatkan lisensi oleh badan medis untuk melakukan pengobatan di dunia.[2] Karir Erxleben diajari ilmu kedokteran oleh ay...

Shopping mall in Kota Kinabalu, Sabah, Malaysia You can help expand this article with text translated from the corresponding article in Chinese. (December 2018) Click [show] for important translation instructions. Machine translation, like DeepL or Google Translate, is a useful starting point for translations, but translators must revise errors as necessary and confirm that the translation is accurate, rather than simply copy-pasting machine-translated text into the English Wikipedia. Do...

 

Superfamily of beetles ScarabaeoideaTemporal range: Jurassic–Recent PreꞒ Ꞓ O S D C P T J K Pg N Scarabaeoidea from Central Europewith anatomical details Scientific classification Domain: Eukaryota Kingdom: Animalia Phylum: Arthropoda Class: Insecta Order: Coleoptera Suborder: Polyphaga Infraorder: ScarabaeiformiaCrowson, 1960 Superfamily: ScarabaeoideaLatreille, 1802 Scarabaeoidea is a superfamily of beetles, the only subgroup of the infraorder Scarabaeiformia. Around 35,000 species are...

 

Artikel ini membutuhkan rujukan tambahan agar kualitasnya dapat dipastikan. Mohon bantu kami mengembangkan artikel ini dengan cara menambahkan rujukan ke sumber tepercaya. Pernyataan tak bersumber bisa saja dipertentangkan dan dihapus.Cari sumber: Daftar acara Jawa Pos TV – berita · surat kabar · buku · cendekiawan · JSTOR Logo Jawa Pos TV Halaman ini memuat daftar acara yang ditayangkan Jawa Pos TV di Surabaya dan Jakarta. Acara saat ini Program dari ...

Roman politician, soldier and writer (234–149 BC) This article relies excessively on references to primary sources. Please improve this article by adding secondary or tertiary sources. Find sources: Cato the Elder – news · newspapers · books · scholar · JSTOR (January 2023) (Learn how and when to remove this message) Marcus Porcius CatoThe Patrician Torlonia bust thought to be of Cato the ElderBorn234 BCTusculum, Roman RepublicDied149 BC (aged 85)Rom...

 

Public university in London, England This article is about the university institution in London, England, founded in 1829. For other and similar uses, see King's College. King's College LondonCoat of armsLatin: Collegium Regale Londinense[1] or Collegium Regium apud Londinenses[2]MottoLatin: Sancte et SapienterMotto in EnglishWith Holiness and WisdomTypePublic research universityEstablished1829 (earliest recorded teaching in medical school 1561)[3]Endowment£301.0...