I've accidentally created a file that can't be parsed in either json5 or hjson, because I'm trying to use features from both at once.
Conversation
Notices
-
Foone🏳️⚧️ (foone@digipres.club)'s status on Sunday, 15-Dec-2024 17:28:31 JST Foone🏳️⚧️ -
Foone🏳️⚧️ (foone@digipres.club)'s status on Sunday, 15-Dec-2024 17:29:48 JST Foone🏳️⚧️ I need multiline strings AND hex literals!
maybe I need to switch to something else, like python.
-
Foone🏳️⚧️ (foone@digipres.club)'s status on Sunday, 15-Dec-2024 17:32:37 JST Foone🏳️⚧️ @gkrnours I mean just a literal .py file
-
gkrnours (gkrnours@mastodon.gamedev.place)'s status on Sunday, 15-Dec-2024 17:32:38 JST gkrnours @foone pickle should do the job, but pickle have sharp edge. I would recommend against using it on anything but data type native to the standard library.
-
Foone🏳️⚧️ (foone@digipres.club)'s status on Sunday, 15-Dec-2024 17:33:16 JST Foone🏳️⚧️ my new DSL was created by renaming the file to config_patches.py and putting "PATCHES=" before the first { in the JSON
-
Foone🏳️⚧️ (foone@digipres.club)'s status on Sunday, 15-Dec-2024 17:33:42 JST Foone🏳️⚧️ parsing it is easy. don't install anything from pypi, just do "from config_patches import PATCHES"
-
clayote (clayote@peoplemaking.games)'s status on Sunday, 15-Dec-2024 17:38:17 JST clayote @foone bad foone. must use ast.literal_eval
-