Post Scarcity
A prototype for a post scarcity programming environment
Loading...
Searching...
No Matches
read.h
Go to the documentation of this file.
1
/**
2
* read.c
3
*
4
* First pass at a reader, for bootstrapping.
5
*
6
*
7
* (c) 2017 Simon Brooke <simon@journeyman.cc>
8
* Licensed under GPL version 2.0, or, at your option, any later version.
9
*/
10
11
#ifndef __read_h
12
#define __read_h
13
14
#include "
memory/consspaceobject.h
"
15
16
/* characters (other than arabic numberals) used in number representations */
17
#define LCOMMA L','
18
#define LPERIOD L'.'
19
#define LSLASH L'/'
20
/* ... used in map representations */
21
#define LCBRACE L'}'
22
/* ... used in path representations */
23
#define LSESSION L'ยง'
24
25
/**
26
* read the next object on this input stream and return a cons_pointer to it.
27
*/
28
struct
cons_pointer
read
( struct
stack_frame
*frame,
29
struct
cons_pointer
frame_pointer,
30
struct
cons_pointer
env,
URL_FILE
* input );
31
32
#endif
consspaceobject.h
cons_pointer
An indirect pointer to a cons cell.
Definition
consspaceobject.h:415
stack_frame
A stack frame.
Definition
consspaceobject.h:431
fcurl_data
Definition
fopen.h:60
read
struct cons_pointer read(struct stack_frame *frame, struct cons_pointer frame_pointer, struct cons_pointer env, URL_FILE *input)
read the next object on this input stream and return a cons_pointer to it.
Definition
read.c:559
workspace
post-scarcity
src
io
read.h
Generated by
1.9.8