Azinix

rlpNode.c File Reference

Routines for building lisp-like lists. More...

#include "rlp.h"

Go to the source code of this file.

Functions

Rlp_Formula_tnew_node (Rlp_OperatorEnum_t type, Rlp_Formula_t *lchild, Rlp_Formula_t *rchild)
 Allocate a new node.
Rlp_Formula_tmake2eltlist (Rlp_Formula_t *a, Rlp_Formula_t *b)
 List is always a list node with right child another list node or nil.
Rlp_Formula_tcar (Rlp_Formula_t *a)
 LISP car function.
Rlp_Formula_tcdr (Rlp_Formula_t *a)
 LISP cdr function.
int node_print (Rlp_Formula_t *a)
 print node


Detailed Description

Routines for building lisp-like lists.

Definition in file rlpNode.c.


Function Documentation

Rlp_Formula_t * car ( Rlp_Formula_t a  ) 

LISP car function.

Definition at line 57 of file rlpNode.c.

Rlp_Formula_t * cdr ( Rlp_Formula_t a  ) 

LISP cdr function.

Definition at line 66 of file rlpNode.c.

Rlp_Formula_t* make2eltlist ( Rlp_Formula_t a,
Rlp_Formula_t b 
)

List is always a list node with right child another list node or nil.

Definition at line 37 of file rlpNode.c.

Rlp_Formula_t * new_node ( Rlp_OperatorEnum_t  type,
Rlp_Formula_t lchild,
Rlp_Formula_t rchild 
)

Allocate a new node.

Definition at line 17 of file rlpNode.c.

int node_print ( Rlp_Formula_t a  ) 

print node

Definition at line 75 of file rlpNode.c.