Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: af3cdbd5de
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (27 sloc) 1.091 kB
/* syntax.h -- abstract syntax tree interface ($Revision: 1.1.1.1 $) */
#define CAR u[0].p
#define CDR u[1].p
/* syntax.c */
extern Tree errornode;
extern Tree *treecons(Tree *car, Tree *cdr);
extern Tree *treecons2(Tree *car, Tree *cdr);
extern Tree *treeconsend(Tree *p, Tree *q);
extern Tree *treeconsend2(Tree *p, Tree *q);
extern Tree *treeappend(Tree *head, Tree *tail);
extern Tree *thunkify(Tree *tree);
extern Tree *prefix(char *s, Tree *t);
extern Tree *backquote(Tree *ifs, Tree *body);
extern Tree *flatten(Tree *t, char *sep);
extern Tree *fnassign(Tree *name, Tree *defn);
extern Tree *mklambda(Tree *params, Tree *body);
extern Tree *mkseq(char *op, Tree *t1, Tree *t2);
extern Tree *mkpipe(Tree *t1, int outfd, int infd, Tree *t2);
extern Tree *mkclose(int fd);
extern Tree *mkdup(int fd0, int fd1);
extern Tree *redirect(Tree *t);
extern Tree *mkredir(Tree *cmd, Tree *file);
extern Tree *mkredircmd(char *cmd, int fd);
extern Tree *redirappend(Tree *t, Tree *r);
/* heredoc.c */
extern Boolean readheredocs(Boolean endfile);
extern Boolean queueheredoc(Tree *t);
Jump to Line
Something went wrong with that request. Please try again.