Racket/Options: Difference between revisions

no edit summary
(Shared code for the two options-file related questions)
 
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1:
This code is a small library for dealing with options file, used in [Update_a_configuration_file[Update a configuration file]] and [Read_a_configuration_file[Read a configuration file]]. It is assumed to be in a file called "options.rkt".
 
<langsyntaxhighlight lang="Racket">
#lang racket
 
(provide read-options write-options define-options ENABLE)
 
;; holds the verbatim line, includes empty lines
Line 85 ⟶ 87:
[_ (opt-ref 'name)]))
...))
 
</lang>
</syntaxhighlight>