Parsing
This commit is contained in:
parent
12f5994191
commit
dc639df1da
|
@ -129,7 +129,7 @@
|
||||||
[(? char-alphabetic?)
|
[(? char-alphabetic?)
|
||||||
(define string-tag (read-until (λ (c) (char=? c #\,)) ip))
|
(define string-tag (read-until (λ (c) (char=? c #\,)) ip))
|
||||||
(hash-ref STRING-DB string-tag
|
(hash-ref STRING-DB string-tag
|
||||||
(λ () (error 'read-value "Unknown string constant ~v" string-tag)))]
|
(λ () string-tag))]
|
||||||
[c
|
[c
|
||||||
(error 'read-value "Parsing value, expected {, got ~v" c)]))
|
(error 'read-value "Parsing value, expected {, got ~v" c)]))
|
||||||
|
|
||||||
|
@ -144,8 +144,7 @@
|
||||||
(λ ()
|
(λ ()
|
||||||
(bibtex-parse (current-input-port)))))
|
(bibtex-parse (current-input-port)))))
|
||||||
(printf "~v\n" (hash-count bibdb))
|
(printf "~v\n" (hash-count bibdb))
|
||||||
(error 'path->bibdb pth)
|
bibdb)
|
||||||
#f)
|
|
||||||
|
|
||||||
(path->bibdb "/Users/jay/Dev/scm/github.jeapostrophe/work/papers/etc/all.bib")
|
(path->bibdb "/Users/jay/Dev/scm/github.jeapostrophe/work/papers/etc/all.bib")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user