muse_builtins.c File Reference

#include "muse_builtins.h"
#include "muse_port.h"
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>

Include dependency graph for muse_builtins.c:


Data Structures

struct  _builtins

Functions

void muse_load_builtin_fns ()
muse_cell fn_quote (muse_env *env, void *context, muse_cell args)
 Quotes the given arguments without evaluating them.
muse_cell fn_cons (muse_env *env, void *context, muse_cell args)
 (cons head tail).
muse_cell fn_eval (muse_env *env, void *context, muse_cell args)
 (eval s-expr).
muse_cell syntax_if (muse_env *env, void *context, muse_cell args)
 (if cond-expr then-expr [else-expr]).
muse_cell syntax_cond (muse_env *env, void *context, muse_cell args)
 cond is the generalization of if-then-else nested blocks.
muse_cell syntax_do (muse_env *env, void *context, muse_cell args)
 (do <expressions>).
muse_cell syntax_while (muse_env *env, void *context, muse_cell args)
 (while bool-expr <body>).
muse_cell syntax_for (muse_env *env, void *context, muse_cell args)
 (for init-expr cond-expr step-expr body [result-expr]).
muse_cell fn_stats (muse_env *env, void *context, muse_cell args)
 (stats).
muse_cell fn_int_p (muse_env *env, void *context, muse_cell args)
 (int? x).
muse_cell fn_float_p (muse_env *env, void *context, muse_cell args)
 (float? x).
muse_cell fn_number_p (muse_env *env, void *context, muse_cell args)
 (number? x).
muse_cell fn_cons_p (muse_env *env, void *context, muse_cell args)
 (cons? x).
muse_cell fn_fn_p (muse_env *env, void *context, muse_cell args)
 (fn? x).
muse_cell fn_symbol_p (muse_env *env, void *context, muse_cell args)
 (symbol? x).
muse_cell fn_string_p (muse_env *env, void *context, muse_cell args)
 (string? x).
muse_cell fn_time_taken_us (muse_env *env, void *context, muse_cell args)
 (time-taken-us <block>).
muse_cell fn_exit (muse_env *env, void *context, muse_cell args)
 (exit).
static void gendoc_for_symbol (muse_cell symbol, muse_port_t p)
muse_cell fn_generate_documentation (muse_env *env, void *context, muse_cell args)
 (generate-documentation output-file-name).
muse_cell fn_format (muse_env *env, void *context, muse_cell args)
 (format --args-- ).
muse_cell fn_string_length (muse_env *env, void *context, muse_cell args)
 (string-length s).
muse_cell fn_load_plugin (muse_env *env, void *context, muse_cell args)
 (load-plugin dll-filename).

Variables

static struct _builtins k_builtins []

Detailed Description

Author:
Srikumar K. S. (mailto:kumar@muvee.com)
Copyright (c) 2006 Jointly owned by Srikumar K. S. and muvee Technologies Pte. Ltd.

All rights reserved. See LICENSE.txt distributed with this source code or http://muvee-symbolic-expressions.googlecode.com/svn/trunk/LICENSE.txt for terms and conditions under which this software is provided to you.


Function Documentation

void muse_load_builtin_fns (  ) 

muse_cell fn_time_taken_us ( muse_env env,
void *  context,
muse_cell  args 
)

(time-taken-us <block>).

Returns the time taken to execute the block, in microseconds.

static void gendoc_for_symbol ( muse_cell  symbol,
muse_port_t  p 
) [static]

muse_cell fn_generate_documentation ( muse_env env,
void *  context,
muse_cell  args 
)

(generate-documentation output-file-name).

muse_cell fn_format ( muse_env env,
void *  context,
muse_cell  args 
)

(format --args-- ).

Converts each arg to a string, concatenates all the strings and returns the result as a single string.

muse_cell fn_string_length ( muse_env env,
void *  context,
muse_cell  args 
)

(string-length s).

Returns the number of characters in the string or () if s is not a string.

muse_cell fn_load_plugin ( muse_env env,
void *  context,
muse_cell  args 
)

(load-plugin dll-filename).

Loads and dynamically links the given plugin. Returns the result of invoking the plugin's entry point function.


Variable Documentation

struct _builtins k_builtins[] [static]


Generated on Mon Sep 25 23:12:47 2006 for muSE by  doxygen 1.4.7