Noble Ape
The Central Directories of the Noble Ape Simulation.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions | Variables
parse.c File Reference

This parses ApeScript and produces the ApeScript byte-code. More...

#include "noble.h"
Include dependency graph for parse.c:

Go to the source code of this file.

Macros

#define SYNTAX_NUM   19
#define SYNTAX_WIDTH   4

Functions

n_filescdebug_file_ready (void)
void scdebug_file_cleanup (void)
void scdebug_writeon (void *ptr)
void scdebug_writeoff (void *ptr)
void scdebug_string (void *ptr, n_constant_string string)
n_string scdebug_variable (n_int variable)
void scdebug_int (void *ptr, n_int number)
void scdebug_newline (void *ptr)
void scdebug_tabstep (void *ptr, n_int steps)
n_interpretparse_convert (n_file *input, n_int main_entry, variable_string *variables)

Variables

n_filefile_debug = 0L

Detailed Description

This parses ApeScript and produces the ApeScript byte-code.

Definition in file parse.c.


Macro Definition Documentation

#define SYNTAX_NUM   19

Definition at line 48 of file parse.c.

#define SYNTAX_WIDTH   4

Definition at line 49 of file parse.c.


Function Documentation

n_interpret* parse_convert ( n_file input,
n_int  main_entry,
variable_string variables 
)

Turns an input file into an interpret-able pointer.

Parameters:
inputThe file pointer containing the ApeScript text data.
main_entryThe variable defined as main. In the case of this implementation of ApeScript, being.
variablesThe pointer to the variable string used for debugging to output the actual variable names.
Returns:
The interpreter pointer created from the file pointer.

Definition at line 436 of file parse.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void scdebug_file_cleanup ( void  )

Definition at line 98 of file parse.c.

Here is the call graph for this function:

Here is the caller graph for this function:

n_file* scdebug_file_ready ( void  )

Definition at line 93 of file parse.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void scdebug_int ( void *  ptr,
n_int  number 
)

Definition at line 137 of file parse.c.

Here is the call graph for this function:

void scdebug_newline ( void *  ptr)

Definition at line 153 of file parse.c.

Here is the call graph for this function:

void scdebug_string ( void *  ptr,
n_constant_string  string 
)

Definition at line 116 of file parse.c.

Here is the call graph for this function:

void scdebug_tabstep ( void *  ptr,
n_int  steps 
)

Definition at line 184 of file parse.c.

n_string scdebug_variable ( n_int  variable)

Definition at line 123 of file parse.c.

void scdebug_writeoff ( void *  ptr)

Definition at line 109 of file parse.c.

Here is the call graph for this function:

void scdebug_writeon ( void *  ptr)

Definition at line 103 of file parse.c.

Here is the call graph for this function:


Variable Documentation

n_file* file_debug = 0L

Definition at line 88 of file parse.c.