Help with the Lisp Reader Technique
Hi I am developing a game that uses Lisp based text files to store data. Although I can't seem to figure out how to right the code. Here is an example text file that I would like to load. The number of level sets will increase as users make their own with the built in level editor, so I need a way of dynamicly loading all of them.
Code:
;; TuxBlocks Level Sets
(numofsets 3
(levelset 1
(name "Classic")
(location "classic/classic.tbls")
(levels 11))
(levelset 2
(name "Confusion")
(location "confusion/confusion.tbls")
(levels 0))
(levelset 3
(name "Insanity")
(location "insanity/insanity.tbls")
(levels 1)))
;; EOF ;;
Could somebody please help understand how to use the lisp reader technique?