- NoFrendo : Nes Emulator supporting save states
- PeanutGB : GameBoy emulator
- PeanutGBC : GameBoyColor emulator
- Mandelbrot : Mandelbrot set explorer
- Julia explorer : Julia and Mandelbrot explorer
| #!/usr/bin/python3 | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import os.path | |
| import re | |
| import sys | |
| from datetime import datetime | |
| header_regex = re.compile(r"\s*?\/\* \*{74}[\s\S]*?([a-zA-Z0-9_\-]+?\.[ch])[\s\S]*?By: (([A-Za-z_\-]+?) <(.+)>)[\s\S]*?Created: ((\d{4}\/\d\d\/\d\d) (\d\d:\d\d:\d\d) by ([A-Za-z_\-]+))[\s\S]*? Updated: ((\d{4}\/\d\d\/\d\d) (\d\d:\d\d:\d\d) by ([A-Za-z_\-]+))[\s\S]*?\*{74} \*\/") | |
| fallback_regex = re.compile(r"\s*?\/\* \*{74}[\s\S]*?\*{74} \*\/"); |
| class_name VdfParser | |
| enum ParsingError { | |
| SUCCESS = 0, | |
| UNMATCHING_QUOTES = 1, | |
| UNRECONISED_TOKEN = 2, | |
| UNMATCHING_BRACKETS = 3, | |
| } | |
| # A recursive basic and unsafe parser of Valve Data Format (VDF) made from my understanding of it |