|
3804 | 3804 | ~gexpr ~expr] |
3805 | 3805 | ~(emit gpred gexpr clauses)))) |
3806 | 3806 |
|
| 3807 | +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; var documentation ;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 3808 | + |
| 3809 | +(defmacro add-doc {:private true} [name docstring] |
| 3810 | + `(alter-meta! (var ~name) assoc :doc ~docstring)) |
| 3811 | + |
| 3812 | +(add-doc *file* |
| 3813 | + "The path of the file being evaluated, as a String. |
| 3814 | +
|
| 3815 | + Evaluates to nil when there is no file, eg. in the REPL.") |
| 3816 | + |
| 3817 | +(add-doc *command-line-args* |
| 3818 | + "A sequence of the supplied command line arguments, or nil if |
| 3819 | + none were supplied") |
| 3820 | + |
| 3821 | +(add-doc *warn-on-reflection* |
| 3822 | + "When set to true, the compiler will emit warnings when reflection is |
| 3823 | + needed to resolve Java method calls or field accesses. |
| 3824 | +
|
| 3825 | + Defaults to false.") |
| 3826 | + |
| 3827 | +(add-doc *compile-path* |
| 3828 | + "Specifies the directory where 'compile' will write out .class |
| 3829 | + files. This directory must be in the classpath for 'compile' to |
| 3830 | + work. |
| 3831 | +
|
| 3832 | + Defaults to \"classes\"") |
| 3833 | + |
| 3834 | +(add-doc *compile-files* |
| 3835 | + "Set to true when compiling files, false otherwise.") |
| 3836 | + |
| 3837 | +(add-doc *ns* |
| 3838 | + "A clojure.lang.Namespace object representing the current namespace.") |
| 3839 | + |
| 3840 | +(add-doc *in* |
| 3841 | + "A java.io.Reader object representing standard input for read operations. |
| 3842 | +
|
| 3843 | + Defaults to System/in, wrapped in a LineNumberingPushbackReader") |
| 3844 | + |
| 3845 | +(add-doc *out* |
| 3846 | + "A java.io.Writer object representing standard output for print operations. |
| 3847 | +
|
| 3848 | + Defaults to System/out") |
| 3849 | + |
| 3850 | +(add-doc *err* |
| 3851 | + "A java.io.Writer object representing standard error for print operations. |
| 3852 | +
|
| 3853 | + Defaults to System/err, wrapped in a PrintWriter") |
| 3854 | + |
| 3855 | +(add-doc *flush-on-newline* |
| 3856 | + "When set to true, output will be flushed whenever a newline is printed. |
| 3857 | +
|
| 3858 | + Defaults to true.") |
| 3859 | + |
| 3860 | +(add-doc *print-meta* |
| 3861 | + "If set to logical true, when printing an object, its metadata will also |
| 3862 | + be printed in a form that can be read back by the reader. |
| 3863 | +
|
| 3864 | + Defaults to false.") |
| 3865 | + |
| 3866 | +(add-doc *print-dup* |
| 3867 | + "When set to logical true, objects will be printed in a way that preserves |
| 3868 | + their type when read in later. |
| 3869 | +
|
| 3870 | + Defaults to false.") |
| 3871 | + |
| 3872 | +(add-doc *print-readably* |
| 3873 | + "When set to logical false, strings and characters will be printed with |
| 3874 | + non-alphanumeric characters converted to the appropriate escape sequences. |
| 3875 | +
|
| 3876 | + Defaults to true") |
| 3877 | + |
3807 | 3878 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; helper files ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
3808 | 3879 | (alter-meta! (find-ns 'clojure.core) assoc :doc "Fundamental library of the Clojure language") |
3809 | 3880 | (load "core_proxy") |
|
0 commit comments