ARB
Classes | Macros | Typedefs | Enumerations | Functions | Variables
aisc_commands.c File Reference
#include "aisc_interpreter.h"
#include "aisc_eval.h"
Include dependency graph for aisc_commands.c:

Go to the source code of this file.

Classes

class  ArgParser
 
struct  for_data
 
struct  Command
 
struct  NoSuchCommand
 
class  NamedCommand
 
class  FINAL_TYPE< SEQTYPE >
 xml element More...
 
class  FINAL_TYPE< SEQTYPE >
 xml element More...
 

Macros

#define ERRBUFSIZE   500
 

Typedefs

typedef int(Interpreter::* NoArgFun )()
 
typedef int(Interpreter::* ArgFun )(const char *)
 

Enumerations

enum  CallMode {
  STANDARD_CALL = 0, DONT_EVAL = 1, EVAL_VAR_DECL = 2, EVAL_PLAIN = 4,
  TERMINATED_ON_ERROR = 8
}
 

Functions

const charformatted (const char *format,...)
 
void print_tabs (int count, FILE *out)
 
static void write_aisc (const TokenListBlock *block, FILE *out, int indentation)
 
charget_ident (const char *&code, const Code *at)
 
for_dataadd_for_data_to (const Code *co)
 
void remove_for_data_from (const Code *co)
 

Variables

const int DISPATCH_LIMIT = 5000000
 

Macro Definition Documentation

#define ERRBUFSIZE   500

Definition at line 64 of file aisc_commands.c.

Referenced by formatted().

Typedef Documentation

typedef int(Interpreter::* NoArgFun)()

Definition at line 742 of file aisc_commands.c.

typedef int(Interpreter::* ArgFun)(const char *)

Definition at line 743 of file aisc_commands.c.

Enumeration Type Documentation

enum CallMode
Enumerator
STANDARD_CALL 
DONT_EVAL 
EVAL_VAR_DECL 
EVAL_PLAIN 
TERMINATED_ON_ERROR 

Definition at line 745 of file aisc_commands.c.

Function Documentation

const char* formatted ( const char format,
  ... 
)

Definition at line 65 of file aisc_commands.c.

References chars, errbuf, ERRBUFSIZE, EXIT_FAILURE, fputc(), NULp, va_end(), va_start(), and vfprintf().

Referenced by Interpreter::launch().

void print_tabs ( int  count,
FILE *  out 
)
inline

Definition at line 88 of file aisc_commands.c.

References fputc().

Referenced by write_aisc().

static void write_aisc ( const TokenListBlock block,
FILE *  out,
int  indentation 
)
static
char* get_ident ( const char *&  code,
const Code at 
)
inline

Definition at line 302 of file aisc_commands.c.

References copy_string_part(), NULp, print_error, and start.

for_data& add_for_data_to ( const Code co)
inline

Definition at line 479 of file aisc_commands.c.

References Code::fd, and for_data::next.

void remove_for_data_from ( const Code co)
inline

Definition at line 488 of file aisc_commands.c.

References Code::fd, for_data::forstr, and for_data::next.

Variable Documentation

const int DISPATCH_LIMIT = 5000000

Definition at line 755 of file aisc_commands.c.