reading and writing of entries with the grammar, mostly spaces and newlines changed

This commit is contained in:
Trilarion 2020-09-04 13:50:49 +02:00
parent 9d1e410f24
commit 50ed561d66
602 changed files with 244 additions and 638 deletions

View File

@ -3,6 +3,11 @@ ftp://ftp.tuxpaint.org/unix/x/
http://antongerdelan.net/blog/ (other projects besides TestDrive) http://antongerdelan.net/blog/ (other projects besides TestDrive)
http://cdetect.sourceforge.net/ http://cdetect.sourceforge.net/
http://circularstudios.com/ http://circularstudios.com/
https://github.com/SadConsole/SadConsole
https://github.com/tlgkccampbell/ultraviolet
https://github.com/amerkoleci/Vortice.Windows
https://github.com/horde3d/Horde3D
https://github.com/cxong/cdogs-sdl
http://cyxdown.free.fr/bs/ http://cyxdown.free.fr/bs/
http://cyxdown.free.fr/f2b/ http://cyxdown.free.fr/f2b/
https://github.com/nfprojects/nfengine https://github.com/nfprojects/nfengine

View File

@ -1,4 +1,4 @@
start: title description property+ note? building start: title _EL description _EL property+ _EL (note)? building
title: "#" /(?! ).+(?<! )/ _NL // not starting or ending with a space title: "#" /(?! ).+(?<! )/ _NL // not starting or ending with a space
description: "_" /(?! ).+(?<![ _])/ "_" _NL // single line not ending with underscore description: "_" /(?! ).+(?<![ _])/ "_" _NL // single line not ending with underscore
@ -9,9 +9,9 @@ _value : quoted_value | unquoted_value
quoted_value : /\".+?\"/ // with quotation marks, can contain commas quoted_value : /\".+?\"/ // with quotation marks, can contain commas
unquoted_value : /(?![ \"])[^,\n]+(?<![ \"])/ // cannot contain commas, cannot start or end with quotation mark unquoted_value : /(?![ \"])[^,\n]+(?<![ \"])/ // cannot contain commas, cannot start or end with quotation mark
note.3: /(?![\-#]).*\n/+ // Unstructured text, not starting with - or # note: /(?![\-#]).*\n/+ // Unstructured text, not starting with - or #
building: "## Building" _NL property* note? // the "building" section building: "## Building" _NL (_EL property+)? (_EL note)? _EL* // the "building" section
_NUMBER: /[0-9]+/ _NUMBER: /[0-9]+/
@ -20,7 +20,6 @@ CR : /\r/
LF : /\n/ LF : /\n/
_NL : CR? LF _NL : CR? LF
WS : (" "|/\t/)+ WS : (" "|/\t/)+
_EL.2 : /^$\n/m _EL : /^$\n/m
%ignore WS %ignore WS
%ignore _EL

View File

@ -605,7 +605,6 @@ def write_entries(entries):
""" """
# iterate over all entries # iterate over all entries
entries = entries[:20]
for entry in entries: for entry in entries:
write_entry(entry) write_entry(entry)
@ -641,29 +640,32 @@ def create_entry_content(entry):
for field in valid_fields: for field in valid_fields:
field_name = field.lower() field_name = field.lower()
if field_name in entry: if field_name in entry:
content += '- {}: {}\n'.format(field, ', '.join(entry[field_name])) c = entry[field_name]
c = ['"{}"'.format(x) if ',' in x else x for x in c]
content += '- {}: {}\n'.format(field, ', '.join(c))
content += '\n' content += '\n'
# if there is a note, insert it # if there is a note, insert it
if 'note' in entry: if 'note' in entry:
content += entry['note'] + '\n' content += entry['note']
# building header # building header
content += '## Building\n\n' content += '## Building\n'
# building properties if present # building properties if present
has_properties = False has_properties = False
for field in valid_building_fields: for field in valid_building_fields:
field_name = field.lower() field_name = field.lower()
if field_name in entry['building']: if field_name in entry['building']:
if not has_properties:
has_properties = True has_properties = True
content += '\n'
content += '- {}: {}\n'.format(field, ', '.join(entry['building'][field_name])) content += '- {}: {}\n'.format(field, ', '.join(entry['building'][field_name]))
# if there is a note, insert it # if there is a note, insert it
if 'note' in entry['building']: if 'note' in entry['building']:
if has_properties:
content += '\n' content += '\n'
content += entry['building']['note'] + '\n' content += entry['building']['note']
return content return content

View File

@ -14,4 +14,3 @@ _Turn based strategy game._
## Building ## Building
- Build system: Autoconf - Build system: Autoconf

View File

@ -10,4 +10,3 @@ _MOAI based point-n-click graphical adventure engine._
- Code license: MIT - Code license: MIT
## Building ## Building

View File

@ -11,4 +11,3 @@ _Turn-based strategy game, an AI client development testbed._
- Code dependencies: Pillow, pygame - Code dependencies: Pillow, pygame
## Building ## Building

View File

@ -12,4 +12,3 @@ _Continuation of Bungie's Marathon 2 FPS game engine._
- Code license: GPL-3.0 - Code license: GPL-3.0
## Building ## Building

View File

@ -12,4 +12,3 @@ _Alien Assault Traders is an online, web-based, turn-based strategy space tradin
- Developer: Mark Dickenson, Rick Thomson - Developer: Mark Dickenson, Rick Thomson
## Building ## Building

View File

@ -14,4 +14,3 @@ _Cross-platform library mainly aimed at video game and multimedia programming._
## Building ## Building
- Build system: CMake - Build system: CMake

View File

@ -11,4 +11,3 @@ _Turn based strategy indie game project._
- Code dependencies: Phaser - Code dependencies: Phaser
## Building ## Building

View File

@ -12,4 +12,3 @@ _Quest-driven Roguelike fantasy dungeon crawler RPG with a powerful story._
- Code license: GPL-2.0 - Code license: GPL-2.0
## Building ## Building

View File

@ -13,4 +13,3 @@ _Single-player dungeon exploration game._
- Code dependencies: SDL - Code dependencies: SDL
## Building ## Building

View File

@ -11,4 +11,3 @@ _Port of the original Ares code base that was open sourced in 2008._
- Code license: LGPL-3.0 - Code license: LGPL-3.0
## Building ## Building

View File

@ -11,4 +11,3 @@ _AntiChess is an anti chess game. You have to take your opponents piece if you c
- Code license: MIT - Code license: MIT
## Building ## Building

View File

@ -11,4 +11,3 @@ _Engine for Frogatto and Friends._
- Code license: zlib (src folder) - Code license: zlib (src folder)
## Building ## Building

View File

@ -12,4 +12,3 @@ _Action/RPG sidescroller, focused not just on fighting, but on story, and charac
- Code dependencies: pygame - Code dependencies: pygame
## Building ## Building

View File

@ -11,4 +11,3 @@ _Turn based strategy game. It has simple and well designed rules._
- Code license: GPL-3.0 - Code license: GPL-3.0
## Building ## Building

View File

@ -14,4 +14,3 @@ _Port of Arx Fatalis, a 2002 first-person role-playing game / dungeon crawler._
## Building ## Building
- Build system: CMake - Build system: CMake

View File

@ -13,9 +13,8 @@ _PBEM Game engine which is used to create many different strategy wargames today
Game engine? Implementations? Game engine? Implementations?
See also: See also:
[Atlantis Little Helper](https://sourceforge.net/projects/alh/), [Dev group](https://groups.yahoo.com/neo/groups/atlantisdev/info), [Atlantis 1.0](https://github.com/ennorehling/atlantis). [Atlantis Little Helper](https://sourceforge.net/projects/alh/), [Dev group](https://groups.yahoo.com/neo/groups/atlantisdev/info), [Atlantis 1.0](https://github.com/ennorehling/atlantis).
https://github.com/essenbee/atlantis, https://github.com/AtlaClient/AtlaClient https://github.com/essenbee/atlantis, https://github.com/AtlaClient/AtlaClient
## Building ## Building

View File

@ -13,4 +13,3 @@ _Faithful remake of, and a tribute to, Atomix, a classic puzzle game created by
- Developer: Mateusz Viste - Developer: Mateusz Viste
## Building ## Building

View File

@ -10,4 +10,3 @@ _A puzzle game in which you have to build full molecules._
- Code license: GPL-2.0 - Code license: GPL-2.0
## Building ## Building

View File

@ -11,4 +11,3 @@ _Themeable turn-based strategy game._
- Code license: GPL-2.0 - Code license: GPL-2.0
## Building ## Building

View File

@ -12,4 +12,3 @@ _Role-playing game mapping program._
- Code dependencies: wxWidgets - Code dependencies: wxWidgets
## Building ## Building

View File

@ -11,4 +11,3 @@ _Relatively easy to win but feature rich fantasy roguelike game with a highly in
- Code license: GPL-2.0 - Code license: GPL-2.0
## Building ## Building

View File

@ -17,4 +17,3 @@ _Remake of the Turnbased Artillery game from 1987._
## Building ## Building
- Build system: CMake - Build system: CMake

View File

@ -12,4 +12,3 @@ _Battlefield Java is simple grid and turned based battle simulation game for Jav
## Building ## Building

View File

@ -10,4 +10,3 @@ _A real-time-strategy (RTS) game._
- Code license: GPL-2.0 - Code license: GPL-2.0
## Building ## Building

View File

@ -11,4 +11,3 @@ _Innovative, original strategy-action RPG developed in Sphere._
- Code license: GPL-2.0 - Code license: GPL-2.0
## Building ## Building

View File

@ -12,4 +12,3 @@ _Turn-based 4X strategy game set in space in the style of classics such as Micro
See also [Android/Java version](https://bitbucket.org/sarkanyi/bote-libgdx/) and https://blotunga.itch.io/birth-of-the-empires See also [Android/Java version](https://bitbucket.org/sarkanyi/bote-libgdx/) and https://blotunga.itch.io/birth-of-the-empires
## Building ## Building

View File

@ -15,4 +15,3 @@ Fork is [Red Nova Traders](https://sourceforge.net/projects/rednova/), inactive
See also https://github.com/myprohost/BlackNovaTrader, https://github.com/Kambyses/BlackNova-Traders See also https://github.com/myprohost/BlackNovaTrader, https://github.com/Kambyses/BlackNova-Traders
## Building ## Building

View File

@ -11,4 +11,3 @@ _2D engine that runs Lua scripts._
- Code license: zlib - Code license: zlib
## Building ## Building

View File

@ -13,4 +13,3 @@ _Little turn-based strategy game based on Pendulous shareware rules._
See also [Pendulous](http://www.blackfalcongames.net/?p=225). See also [Pendulous](http://www.blackfalcongames.net/?p=225).
## Building ## Building

View File

@ -10,4 +10,3 @@ _2D mission and objective-based platform game._
- Code license: GPL-3.0 - Code license: GPL-3.0
## Building ## Building

View File

@ -12,4 +12,3 @@ _Continuation of the famous Blobby Volley 1.x arcade game._
- Code license: GPL-2.0 - Code license: GPL-2.0
## Building ## Building

View File

@ -13,4 +13,3 @@ _2D arcade platform game._
- Code license: GPL-2.0 - Code license: GPL-2.0
## Building ## Building

View File

@ -12,4 +12,3 @@ _Classic bomberman game._
- Code license: GPL-3.0 - Code license: GPL-3.0
## Building ## Building

View File

@ -13,4 +13,3 @@ _Futuristic real time strategy game (RTS)._
Code repository not available (https://www.boswars.org/development.shtml). Code repository not available (https://www.boswars.org/development.shtml).
## Building ## Building

View File

@ -13,4 +13,3 @@ _OpenGL real-time strategy game._
More like alpha. More like alpha.
## Building ## Building

View File

@ -14,4 +14,3 @@ _Dual n-back brain training exercise._
- Assets license: CC (caprica-letters and all the music in the latest version - Assets license: CC (caprica-letters and all the music in the latest version
## Building ## Building

View File

@ -12,4 +12,3 @@ _Inspired by the once popular "Battle Chess" released by Interplay circa 1988._
- Code license: GPL-2.0 - Code license: GPL-2.0
## Building ## Building

View File

@ -11,4 +11,3 @@ _Football (a.k.a. soccer) manager game featuring many international leagues and
- Code license: GPL-2.0 - Code license: GPL-2.0
## Building ## Building

View File

@ -15,4 +15,3 @@ _Multiplayer tank game._
## Building ## Building
- Build system: Autoconf - Build system: Autoconf

View File

@ -17,4 +17,3 @@ _Overhead run-and-gun game._
## Building ## Building
- Build system: CMake - Build system: CMake

View File

@ -13,4 +13,3 @@ _3D game engine._
## Building ## Building
- Build system: VisualStudio - Build system: VisualStudio

View File

@ -11,4 +11,3 @@ _Mix between action and rpg._
- Code dependencies: pygame, wxPython - Code dependencies: pygame, wxPython
## Building ## Building

View File

@ -14,4 +14,3 @@ _Remake of the popular citybuilder/economic strategy - Caesar III, videogame by
## Building ## Building
- Build system: CMake - Build system: CMake

View File

@ -15,4 +15,3 @@ _Online text-based role-playing game featuring ASCII art._
See also [Candy Box](https://github.com/candybox2/candybox) See also [Candy Box](https://github.com/candybox2/candybox)
## Building ## Building

View File

@ -13,4 +13,3 @@ _Castle of the Winds remake._
See also Castle of the Winds in Elm. See also Castle of the Winds in Elm.
## Building ## Building

View File

@ -13,4 +13,3 @@ _3D-engine (C++/DirectX9) and a fully playable prototype of a 3rd person action/
- Developer: Olli Sorjonen, Sami Sorjonen, Jani Kajala, Toni Aittoniemi - Developer: Olli Sorjonen, Sami Sorjonen, Jani Kajala, Toni Aittoniemi
## Building ## Building

View File

@ -12,4 +12,3 @@ _Post-apocalyptic roguelike._
See also [Cataclysm: Dark Days Ahead](cataclysm_dark_days_ahead.md) (fork) See also [Cataclysm: Dark Days Ahead](cataclysm_dark_days_ahead.md) (fork)
## Building ## Building

View File

@ -12,4 +12,3 @@ _Top-down space shooter in the legacy of Chromium BSU._
- Code dependencies: NumPy, pygame - Code dependencies: NumPy, pygame
## Building ## Building

View File

@ -11,4 +11,3 @@ _Data driven game engine._
- Code license: CC0 - Code license: CC0
## Building ## Building

View File

@ -13,4 +13,3 @@ _Collection of educational activities for young children._
- Code dependencies: NumPy, pygame - Code dependencies: NumPy, pygame
## Building ## Building

View File

@ -13,4 +13,3 @@ _An MMORPG that's all about grinding and doing chores._
## Building ## Building
- Build system: CMake - Build system: CMake

View File

@ -10,4 +10,3 @@ _Exact clone of Sid Meier's Civilization._
- Code license: CC0 - Code license: CC0
## Building ## Building

View File

@ -14,4 +14,3 @@ _Role-playing game created by Jeff Vogel of Spiderweb Software._
Started as a commercial project. Part of the Exile series and released in 1997 by Spiderweb Software. Started as a commercial project. Part of the Exile series and released in 1997 by Spiderweb Software.
## Building ## Building

View File

@ -16,4 +16,3 @@ _Update of the classic DOOM engine inside DOOM 3 BFG Edition._
Classic RBDoom 3 BFG is updating the classic DOOM engine inside DOOM 3 BFG Edition Classic RBDoom 3 BFG is updating the classic DOOM engine inside DOOM 3 BFG Edition
## Building ## Building

View File

@ -14,4 +14,3 @@ _Cocos2d-x is an open-source game framework written in C++._
## Building ## Building
- Build system: CMake - Build system: CMake

View File

@ -16,4 +16,3 @@ More repositories?
## Building ## Building
- Build system: setup.py - Build system: setup.py

View File

@ -11,4 +11,3 @@ _Nostalgic glimpse in the past in a form of Commodore 64 game "Commando"._
- Code dependencies: melonJS - Code dependencies: melonJS
## Building ## Building

View File

@ -11,4 +11,3 @@ _4X game, similar to the Civilization series of games._
- Code license: GPL-2.0 - Code license: GPL-2.0
## Building ## Building

View File

@ -13,4 +13,3 @@ _Two or more battle programs (called "warriors") compete for control of a virtua
See also [SDL pMars](https://corewar.co.uk/pihlaja/pmars-sdl/index.htm), [corewar.io](https://www.corewar.io/) with [sources on Github](https://github.com/corewar/corewar) See also [SDL pMars](https://corewar.co.uk/pihlaja/pmars-sdl/index.htm), [corewar.io](https://www.corewar.io/) with [sources on Github](https://github.com/corewar/corewar)
## Building ## Building

View File

@ -14,4 +14,3 @@ _Reimplementation of the 1997 Bullfrog business sim Theme Hospital._
## Building ## Building
- Build system: CMake - Build system: CMake

View File

@ -13,4 +13,3 @@ _Fun puzzle games that run on any terminal._
- Assets license: None - Assets license: None
## Building ## Building

View File

@ -13,4 +13,3 @@ _Turn-based tactical war game._
## Building ## Building
- Build system: Autoconf - Build system: Autoconf

View File

@ -14,4 +14,3 @@ _Cooperative multiplayer graphical RPG and adventure game._
See also [Gridarta for Crossfire, the map editor](https://sourceforge.net/projects/gridarta/). See also [Gridarta for Crossfire, the map editor](https://sourceforge.net/projects/gridarta/).
## Building ## Building

View File

@ -11,4 +11,3 @@ _3d pirate action/adventure game in the spirit of the old Pirates! game._
- Code license: Custom (almost identical to BSD) - Code license: Custom (almost identical to BSD)
## Building ## Building

View File

@ -12,4 +12,3 @@ _Terminal control library for Unix-like systems._
- Code license: BSD - Code license: BSD
## Building ## Building

View File

@ -11,4 +11,3 @@ _Text-based game player and game generator. The games are structured as decision
- Code license: GPL-2.0 - Code license: GPL-2.0
## Building ## Building

View File

@ -14,4 +14,3 @@ _Massively Multiplayer On-line Role-playing Game (MMORPG)._
Server code based on [Crossfire](crossfire.md) Server code based on [Crossfire](crossfire.md)
## Building ## Building

View File

@ -12,4 +12,3 @@ _WW2 submarine 3D simulation._
- Assets license: CC-BY-NC-ND - Assets license: CC-BY-NC-ND
## Building ## Building

View File

@ -15,4 +15,3 @@ See also https://sourceforge.net/projects/darkdestinytools/
Private communication with the authors in September 2018 brought the following license information: "artwork and the code can be freely used for modification and sharing". Private communication with the authors in September 2018 brought the following license information: "artwork and the code can be freely used for modification and sharing".
## Building ## Building

View File

@ -12,4 +12,3 @@ _Real-time strategy game similar to Warcraft II._
- Code dependencies: SDL - Code dependencies: SDL
## Building ## Building

View File

@ -12,4 +12,3 @@ _DarkCity is a MMORPG game, in text mode on the Internet._
- Developer: Philippe Bousquet - Developer: Philippe Bousquet
## Building ## Building

View File

@ -10,4 +10,3 @@ _OpenGL engine written in the D language._
- Code license: MIT - Code license: MIT
## Building ## Building

View File

@ -11,4 +11,3 @@ _Minimal GUI library for C++._
- Code license: MIT - Code license: MIT
## Building ## Building

View File

@ -13,4 +13,3 @@ _Cyberspace hacking RPG where you hack into corporate systems to perform mission
Is there a C++ version? Is there a C++ version?
## Building ## Building

View File

@ -12,4 +12,3 @@ _GameMaster (i.e. role-playing) utility._
- Code dependencies: wxPython - Code dependencies: wxPython
## Building ## Building

View File

@ -11,4 +11,3 @@ _Retro-style, turn-based RPG game._
- Code license: GPL-3.0 - Code license: GPL-3.0
## Building ## Building

View File

@ -16,4 +16,3 @@ May require original game files.
## Building ## Building
- Build system: Make - Build system: Make

View File

@ -14,4 +14,3 @@ _Nintendo DS emulator._
See also: https://github.com/IceReaper/DesktopAdventuresToolkit See also: https://github.com/IceReaper/DesktopAdventuresToolkit
## Building ## Building

View File

@ -15,4 +15,3 @@ _Hardcore arcade shooter; you're free to explore the game world, land on planets
## Building ## Building
- Build system: Gradle - Build system: Gradle

View File

@ -14,4 +14,3 @@ _Browser strategy game._
Main web site is unavailable. License change from GPL-3.0 to zlib between version 1.5.3 and 1.6.6. Main web site is unavailable. License change from GPL-3.0 to zlib between version 1.5.3 and 1.6.6.
## Building ## Building

View File

@ -10,4 +10,3 @@ _Isometric minimal-code style game at html5 canvas and javascript._
- Code license: MIT - Code license: MIT
## Building ## Building

View File

@ -11,4 +11,3 @@ _Source of DOOM._
- Code license: Custom - Code license: Custom
## Building ## Building

View File

@ -14,4 +14,3 @@ _Tool for generating documentation from annotated C++ sources._
## Building ## Building
- Build system: CMake - Build system: CMake

View File

@ -14,4 +14,3 @@ _Role-playing game designed to be flexible and fun._
See also https://github.com/evilmrhenry/dragon_hunt See also https://github.com/evilmrhenry/dragon_hunt
## Building ## Building

View File

@ -15,4 +15,3 @@ _Fast and furious coffee-break Roguelike game that is heavily inspired by Doom._
Also known as DoomRL, short for Doom, the Roguelike. Also known as DoomRL, short for Doom, the Roguelike.
## Building ## Building

View File

@ -11,4 +11,3 @@ _Turn based command line fighting game for Windows and Unix-like systems._
- Code license: GPL-3.0 - Code license: GPL-3.0
## Building ## Building

View File

@ -13,4 +13,3 @@ _Continuation of the classic real-time strategy game Dune II by Westwood Studios
Based on Open Dune. Based on Open Dune.
## Building ## Building

View File

@ -13,4 +13,3 @@ _Clone of the good old Dune II by Westwood Studios._
License of artwork License of artwork
## Building ## Building

View File

@ -11,4 +11,3 @@ _Updated clone of Westwood Studios' Dune2 which uses data files from the origina
- Code license: GPL-2.0 - Code license: GPL-2.0
## Building ## Building

View File

@ -14,4 +14,3 @@ _Roguelike adventure through dungeons filled with dangerous monsters in a quest
Forked from Linley's Dungeon Crawl. Forked from Linley's Dungeon Crawl.
## Building ## Building

View File

@ -12,4 +12,3 @@ _Choose between 6 unique heroes, equip yourself with powerful magic items and pr
- Code license: MIT - Code license: MIT
## Building ## Building

View File

@ -11,4 +11,3 @@ _Map your dungeons for your next role playing adventure._
- Code license: GPL-3.0 - Code license: GPL-3.0
## Building ## Building

View File

@ -12,4 +12,3 @@ _Third game in the dungeon monkey series._
- Developer: Joseph Hewitt - Developer: Joseph Hewitt
## Building ## Building

View File

@ -14,4 +14,3 @@ _A turn based combat-oriented tactics RPG._
Download of version 1.001 slightly different from last state of SVN repository. Download of version 1.001 slightly different from last state of SVN repository.
## Building ## Building

View File

@ -11,4 +11,3 @@ _Smashing more monsters than ever in this turn-based dungeon crawling game._
- Code license: MIT - Code license: MIT
## Building ## Building

View File

@ -13,4 +13,3 @@ _EasyRPG Player is a program that allows to play games created with RPG Maker 20
## Building ## Building
- Build system: Autoconf, CMake - Build system: Autoconf, CMake

View File

@ -14,4 +14,3 @@ _A three-dimensional dungeon crawling adventure that borrows a lot of elements f
## Building ## Building
- Build system: CMake - Build system: CMake

Some files were not shown because too many files have changed in this diff Show More