|
Post Scarcity
A prototype for a post scarcity programming environment
|
Go to the source code of this file.
Functions | |
| struct cons_pointer | lisp_print (struct stack_frame *frame, struct cons_pointer frame_pointer, struct cons_pointer env) |
| Function; print one complete lisp expression and return NIL. | |
| struct cons_pointer | lisp_println (struct stack_frame *frame, struct cons_pointer frame_pointer, struct cons_pointer env) |
(prinln out-stream): Print a new line character to out-stream, if it is specified and is an output stream, else to *out*. | |
| struct cons_pointer | print (URL_FILE *output, struct cons_pointer pointer) |
| print.h | |
| void | println (URL_FILE *output) |
| struct cons_pointer lisp_print | ( | struct stack_frame * | frame, |
| struct cons_pointer | frame_pointer, | ||
| struct cons_pointer | env | ||
| ) |
Function; print one complete lisp expression and return NIL.
If write-stream is specified and is a write stream, then print to that stream, else the stream which is the value of *out* in the environment.
| frame | my stack_frame. |
| frame_pointer | a pointer to my stack_frame. |
| env | my environment (from which the stream may be extracted). |
Definition at line 295 of file print.c.
References debug_dump_object(), DEBUG_IO, debug_print(), dec_ref(), file_to_url_file(), get_default_stream(), inc_ref(), NIL, pointer2cell, print(), and writep.
Referenced by main().
| struct cons_pointer lisp_println | ( | struct stack_frame * | frame, |
| struct cons_pointer | frame_pointer, | ||
| struct cons_pointer | env | ||
| ) |
(prinln out-stream): Print a new line character to out-stream, if it is specified and is an output stream, else to *out*.
| frame | |
| frame_pointer | |
| env |
nil Definition at line 343 of file print.c.
References dec_ref(), file_to_url_file(), get_default_stream(), inc_ref(), NIL, pointer2cell, println(), and writep.
| struct cons_pointer print | ( | URL_FILE * | output, |
| struct cons_pointer | pointer | ||
| ) |
First pass at a printer, for bootstrapping.
(c) 2017 Simon Brooke simon.nosp@m.@jou.nosp@m.rneym.nosp@m.an.c.nosp@m.c Licensed under GPL version 2.0, or, at your option, any later version.
Definition at line 156 of file print.c.
References c_string_to_lisp_symbol(), CONSTV, dec_ref(), dump_stack_trace(), EXCEPTIONTV, FUNCTIONTV, integer_to_string(), INTEGERTV, KEYTV, LAMBDATV, make_cons(), NILTV, NLAMBDATV, cons_space_object::payload, pointer2cell, print(), print_128bit(), print_list(), print_string(), print_string_contents(), print_vso(), RATIOTV, READTV, REALTV, SPECIALTV, STRINGTV, SYMBOLTV, cons_space_object::tag, time_to_string(), TIMETV, TRUETV, url_fputwc, url_fputws, url_fwprintf, VECTORPOINTTV, and WRITETV.
Referenced by check_exception(), debug_print_object(), dump_frame(), dump_frame_context_fragment(), dump_map(), dump_object(), dump_stack_trace(), dump_string_cell(), lisp_print(), lisp_repl(), print(), print_list_contents(), and print_map().
| void println | ( | URL_FILE * | output | ) |
Definition at line 329 of file print.c.
References url_fputws.
Referenced by lisp_println(), and lisp_repl().