小编Bit*_*inu的帖子

Reading data stored in S-expressions into memory in another Common Lisp program

I have a Common Lisp program that reads data from a S-expression file. Originally the program was intended to be written in C with a CSV file that was parsed into a struct in-memory, but I switched to Common Lisp and S-expressions to remove abstractions between programmer and user. If I have a struct defined in program.lisp as such:

(defstruct flashcard
  front
  back
)
Run Code Online (Sandbox Code Playgroud)

...and a file data.lisp:

(:virology
  (
     (:card
        :front "To what sort of cells does Epstain-Barr …
Run Code Online (Sandbox Code Playgroud)

lisp parsing common-lisp

1
推荐指数
1
解决办法
95
查看次数

标签 统计

common-lisp ×1

lisp ×1

parsing ×1