mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Modularizing
This commit is contained in:
parent
9527c2d6d6
commit
16242a980e
1 changed files with 17 additions and 10 deletions
|
@ -17,13 +17,20 @@
|
||||||
;; [`load`](api/scheme/load.md#load)
|
;; [`load`](api/scheme/load.md#load)
|
||||||
;(define line "docs/api/scheme/base.md:- [`denominator`](#denominator)")
|
;(define line "docs/api/scheme/base.md:- [`denominator`](#denominator)")
|
||||||
(define line "docs/api/scheme/process-context.md:- [`get-environment-variables`](#get-environment-variables)")
|
(define line "docs/api/scheme/process-context.md:- [`get-environment-variables`](#get-environment-variables)")
|
||||||
(let* ((lis (string->list line))
|
|
||||||
(s-file 5)
|
(define (convert-line line)
|
||||||
(e-file (index-of lis #\:))
|
(let* ((lis (string->list line))
|
||||||
(file (substring line s-file e-file))
|
(s-file 5)
|
||||||
(s-fnc (+ 1 (index-of lis #\`)))
|
(e-file (index-of lis #\:))
|
||||||
(e-fnc (+ s-fnc (index-of (string->list (substring line (+ 0 s-fnc) (string-length line))) #\`)))
|
(file (substring line s-file e-file))
|
||||||
(fnc (substring line s-fnc e-fnc)))
|
(s-fnc (+ 1 (index-of lis #\`)))
|
||||||
(display
|
(e-fnc (+ s-fnc (index-of (string->list (substring line (+ 0 s-fnc) (string-length line))) #\`)))
|
||||||
(string-append
|
(fnc (substring line s-fnc e-fnc)))
|
||||||
"[`" fnc "`](" file "#" fnc ")")))
|
(string-append
|
||||||
|
"[`" fnc "`](" file "#" fnc ")")))
|
||||||
|
|
||||||
|
(display (convert-line line))
|
||||||
|
;(define (loop)
|
||||||
|
; (let ((line (read-line)))
|
||||||
|
; (if (not (eof? line))
|
||||||
|
; (display (convert-line line)))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue