[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5 MELT functions

There are 49 functions.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.1 GENERATE_GPLV3PLUS_COPYRIGHT_NOTICE_C_COMMENT

Function defined at file ‘warmelt-outobj.melt’, line 5504.

Function formals:

indextypename
0VALUESBUF
1VALUENAME

Function description: Generate into stringbuffer SBUF a C comment with GPLv3+ notice for file named NAME.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.2 INSTALL_MELT_MODE

Function defined at file ‘warmelt-outobj.melt’, line 3959.

Function formals:

indextypename
0VALUEMODE

Function description: INSTALL_MELT_MODE installs a new MELT mode, ie an instance of CLASS_MELT_MODE.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.3 PATTERN_WEIGHT_TUPLE

Function defined at file ‘warmelt-macro.melt’, line 1393.

Function formals:

indextypename
0VALUESPATS

Function description: The function PATTERN_WEIGHT_TUPLE compute the tuple, and their maximum, their minimum, and their sum, of the pattern weights of the SPATS tuple argument made of instances of CLASS_SOURCE_PATTERN.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.4 EXPAND_RESTLIST_AS_LIST

Function defined at file ‘warmelt-macro.melt’, line 799.

Function formals:

indextypename
0VALUEARGLIST
1VALUEENV
2VALUEMEXPANDER

Function description: Expand all but the first in an argument list ARGLIST in environment ENV using expander MEXPANDER as a list of macro expansions.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.5 DISPLAY_DEBUG_MESSAGE

Function defined at file ‘warmelt-debug.melt’, line 1029.

Function formals:

indextypename
0VALUEVAL
1CSTRINGMSGSTR
2LONGCOUNT

Function description: Display in a debug-style the value VAL with message raw string MSGSTR and counter COUNT. Rarely useful.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.6 DBGOUTAGAIN_FIELDS

Function defined at file ‘warmelt-debug.melt’, line 242.

Function formals:

indextypename
0VALUEOBJ
1VALUEDBGI
2LONGDEPTH
3LONGFROMRANK
4LONGTORANK

Function description: Utility to output again for debugging value in OBJ using debug information DBGI at given DEPTH the fields from FROMRANK to TORANK


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.7 DBGOUT_FIELDS

Function defined at file ‘warmelt-debug.melt’, line 191.

Function formals:

indextypename
0VALUEOBJ
1VALUEDBGI
2LONGDEPTH
3LONGFROMRANK
4LONGTORANK

Function description: Utility to output for debugging value in OBJ using debug information DBGI at given DEPTH the fields from FROMRANK to TORANK


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.8 DBG_OUT

Function defined at file ‘warmelt-debug.melt’, line 165.

Function formals:

indextypename
0VALUEOBJ
1VALUEDBGI
2LONGDEPTH

Function description: Output for debugging value OBJ using debug information DBGI at given DEPTH


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.9 DBG_OUTOBJECT

Function defined at file ‘warmelt-debug.melt’, line 145.

Function formals:

indextypename
0VALUEOBJ
1VALUEDBGI
2LONGDEPTH

Function description: Output for debugging object OBJ using debug information DBGI at given DEPTH


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.10 DEBUG_MSG_FUN

Function defined at file ‘warmelt-debug.melt’, line 60.

Function formals:

indextypename
0VALUEVAL
1CSTRINGMSGSTR
2LONGCOUNT
3CSTRINGFILENAM
4LONGLINENO

Function description: Internal function called by DEBUG_MSG macro to output for debugging the value VAL with message MSGSTR, given COUNT, at FILENAM and LINENO


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.11 UNREGISTER_PASS_EXECUTION_HOOK

Function defined at file ‘warmelt-base.melt’, line 1098.

Function formals:

indextypename
0VALUEFUN

Function description: Unregister a pass execution hook function FUN previously registered with REGISTER_PASS_EXECUTION_HOOK.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.12 REGISTER_PASS_EXECUTION_HOOK

Function defined at file ‘warmelt-base.melt’, line 1063.

Function formals:

indextypename
0VALUEFUN

Function description: Register closure FUN as the hook for pass execution using PLUGIN_PASS_EXECUTION. These hooks are called in order of registrration. Their first argument is the boxed pass name string, their second argument is the raw pass number stuff. See also UNREGISTER_PASS_EXECUTION_HOOK.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.13 MULTIPLE_EVERY_BOTH

Function defined at file ‘warmelt-base.melt’, line 1012.

Function formals:

indextypename
0VALUETUP1
1VALUETUP2
2VALUEF

Function description: Given two tuples TUP1 and TUP2, apply function F to every component of TUP1 with component of TUP2 and index. Stop when either end is reached. Return nil.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.14 MULTIPLE_BACKWARD_EVERY

Function defined at file ‘warmelt-base.melt’, line 1000.

Function formals:

indextypename
0VALUETUP
1VALUEF

Function description: Apply to every component (from last to first) of tuple TUP backwards, and its index the given function F. Return nil.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.15 MULTIPLE_EVERY

Function defined at file ‘warmelt-base.melt’, line 989.

Function formals:

indextypename
0VALUETUP
1VALUEF

Function description: Apply to every component of tuple TUP and its index the given function F. Return nil.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.16 MAPSTRING_ITERATE_TEST

Function defined at file ‘warmelt-base.melt’, line 940.

Function formals:

indextypename
0VALUEMAP
1VALUEF

Function description: For a given hash-map of strings MAP and a function F, apply F to every attribute object and string value. If it returns a null value, with an other secundary value, gives the failing attribute, its value, and the other.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.17 MAPSTRING_EVERY

Function defined at file ‘warmelt-base.melt’, line 927.

Function formals:

indextypename
0VALUEMAP
1VALUEF

Function description: For a given hash-map of strings MAP and a function F, apply F to every attribute object and [perhaps allocated] string value. Returns nil.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.18 COMPARE_NAMED_ALPHA

Function defined at file ‘warmelt-base.melt’, line 633.

Function formals:

indextypename
0VALUEN1
1VALUEN2

Function description: Alphanumerical compare of named instances N1 and N2. Returns a boxed integer.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.19 RETRIEVE_DICTIONNARY_CTYPE

Function defined at file ‘warmelt-first.melt’, line 3744.

Function description: Retrieve the dictionnary of all ctypes.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.20 RETRIEVE_DICTIONNARY_CTYPE_GTY

Function defined at file ‘warmelt-first.melt’, line 3739.

Function description: Retrieve the dictionnary of GTY-ed ctypes.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.21 OVERWRITE_ENV

Function defined at file ‘warmelt-first.melt’, line 3655.

Function formals:

indextypename
0VALUEENV
1VALUEBINDING

Function description: Overwrite in environment ENV or its ancestor the given BINDING, in the environment where it has already been bound. See also CLASS_ANY_BINDING and CLASS_ENVIRONMENT.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.22 PUT_ENV

Function defined at file ‘warmelt-first.melt’, line 3630.

Function formals:

indextypename
0VALUEENV
1VALUEBINDING

Function description: Put into environment ENV the given BINDING. See also CLASS_ANY_BINDING and CLASS_ENVIRONMENT.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.23 FIND_ENCLOSING_ENV

Function defined at file ‘warmelt-first.melt’, line 3611.

Function formals:

indextypename
0VALUEENV
1VALUEBINDER

Function description: Find the binding in environment ENV for given BINDER symbol and secondarily return the reversed list of enclosing procedures.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.24 FIND_ENV

Function defined at file ‘warmelt-first.melt’, line 3561.

Function formals:

indextypename
0VALUEENV
1VALUEBINDER

Function description: Find a binding inside environement ENV for binder symbol BINDER


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.25 FRESH_ENV

Function defined at file ‘warmelt-first.melt’, line 3539.

Function formals:

indextypename
0VALUEPARENV
1VALUEDESCR

Function description: Make a fresh environment of parent PARENV and optional description DESCR. See also CLASS_ENVIRONMENT and CLASS_DESCRIBED_ENVIRONMENT.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.26 MAPOBJECT_SORTED_ATTRIBUTE_TUPLE

Function defined at file ‘warmelt-first.melt’, line 3486.

Function formals:

indextypename
0VALUEMAPO

Function description: Give the alphabetically sorted tuple of attributes in a given object map MAPO


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.27 INSTALL_METHOD

Function defined at file ‘warmelt-first.melt’, line 3344.

Function formals:

indextypename
0VALUECLA
1VALUESEL
2VALUEFUN

Function description: Install in class or discriminant CLA for selector SEL the function FUN as method body.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.28 ROUTINE_EVERY

Function defined at file ‘warmelt-first.melt’, line 3332.

Function formals:

indextypename
0VALUEROU
1VALUEF

Function description: Apply to every value inside routine ROU the function F


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.29 CLOSURE_EVERY

Function defined at file ‘warmelt-first.melt’, line 3319.

Function formals:

indextypename
0VALUECLO
1VALUEF

Function description: Apply to every value inside closure CLO the function F


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.30 MULTIPLE_TO_LIST

Function defined at file ‘warmelt-first.melt’, line 3301.

Function formals:

indextypename
0VALUETUP
1VALUEDISC
2VALUETRANSF

Function description: Given a multiple TUP, a list discriminant DISC [by default DISCR_LIST], a function TRANSF [by default the identity], make a list of every element of the tuple transformed by TRANSF.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.31 MULTIPLE_MAP

Function defined at file ‘warmelt-first.melt’, line 3284.

Function formals:

indextypename
0VALUETUP
1VALUEF

Function description: Given a multiple TUP and a function F, make a multiple made of the application of F to every component and its index.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.32 MULTIPLE_ITERATE_TEST

Function defined at file ‘warmelt-first.melt’, line 3267.

Function formals:

indextypename
0VALUETUP
1VALUEF

Function description: Given a multiple TUP and a function F, find the first component on which F returns nil and some other value. Return the component, its index, and that other value.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.33 PAIRLIST_TO_MULTIPLE

Function defined at file ‘warmelt-first.melt’, line 3202.

Function formals:

indextypename
0VALUEPAIR
1VALUEDISC
2VALUEF

Function description: Make a multiple from a list of pairs: given a pair list starting with PAIR and a multiple discriminant DISC and an optional function F [by default the identity], return a multiple of discriminant DISC made of the result of applying F to every head of pairs.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.34 LIST_FIND

Function defined at file ‘warmelt-first.melt’, line 3159.

Function formals:

indextypename
0VALUELIS
1VALUEX
2VALUEF

Function description: LIST_FIND find in list LIS the first element E such that (F E X), if F is null use the identity test.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.35 LIST_MAP

Function defined at file ‘warmelt-first.melt’, line 3142.

Function formals:

indextypename
0VALUELIS
1VALUEF

Function description: LIST_MAP LIS F maps F to each element of list LIS, so returns the list (LIST (F E_1) ...(F E_n)) if LIS is the (LIST E_1 ... E_n).


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.36 LIST_APPEND2LIST

Function defined at file ‘warmelt-first.melt’, line 3127.

Function formals:

indextypename
0VALUEDLIST
1VALUESLIST

Function description: Add to the destination list DLIST the source list SLIST: add every element of the source list at end of the destination. Return the DLIST.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.37 LIST_ITERATE_TEST

Function defined at file ‘warmelt-first.melt’, line 3111.

Function formals:

indextypename
0VALUELIS
1VALUEF

Function description: Given a list LIS and a function F, apply F to every element and its pair in the list. If it returns nil with an other secondary value, return the element and the other.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.38 LIST_EVERY

Function defined at file ‘warmelt-first.melt’, line 3100.

Function formals:

indextypename
0VALUELIS
1VALUEF

Function description: Given a list LIS and a function F, apply F to every element of the list. Return nil.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.39 MAPOBJECT_ITERATE_TEST

Function defined at file ‘warmelt-first.melt’, line 3060.

Function formals:

indextypename
0VALUEMAP
1VALUEF

Function description: With a given object hash-map MAP and function F which returns a boolean [=nil or not] test value and perhaps a secundary other value, iterate on the map and apply F to every attribute and value in the MAP. If F returns a nil primary result, stop the iteration, and return the failed attribute, associated value, and an eventual other secundary results value returned by F.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.40 MAPOBJECT_EVERY

Function defined at file ‘warmelt-first.melt’, line 3045.

Function formals:

indextypename
0VALUEMAP
1VALUEF

Function description: For a given hash-map of objects MAP and a function F, apply F to every attribute object and value in the map. Returns nil.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.41 REGISTER_OPTION

Function defined at file ‘warmelt-first.melt’, line 2934.

Function formals:

indextypename
0VALUEOPTSYMB
1VALUEOPTHELP
2VALUEOPTFUN

Function description: Registers a MELT option of symbol OPTSYMB helpstring OPTHELP and function OPTFUN.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.42 AT_FINISH_UNIT_LAST

Function defined at file ‘warmelt-first.melt’, line 2889.

Function formals:

indextypename
0VALUEFUN

Function description: Use AT_FINISH_UNIT_LAST to register a function to be run at end of compilation unit in last place


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.43 AT_FINISH_UNIT_FIRST

Function defined at file ‘warmelt-first.melt’, line 2881.

Function formals:

indextypename
0VALUEFUN

Function description: Use AT_FINISH_UNIT_FIRST to register a function to be run at end of compilation unit in first place


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.44 AT_START_UNIT_LAST

Function defined at file ‘warmelt-first.melt’, line 2832.

Function formals:

indextypename
0VALUEFUN

Function description: Use AT_START_UNIT_LAST to register a function to be run at start of translation unit, in first place.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.45 AT_START_UNIT_FIRST

Function defined at file ‘warmelt-first.melt’, line 2825.

Function formals:

indextypename
0VALUEFUN

Function description: Use AT_START_UNIT_FIRST to register a function to be run at start of translation unit, in first place.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.46 AT_EXIT_LAST

Function defined at file ‘warmelt-first.melt’, line 2775.

Function formals:

indextypename
0VALUEFUN

Function description: Use AT_EXIT_LAST to register a function to be run at MELT exit, in last place.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.47 AT_EXIT_FIRST

Function defined at file ‘warmelt-first.melt’, line 2767.

Function formals:

indextypename
0VALUEFUN

Function description: Use AT_EXIT_FIRST to register a function to be run at MELT exit, in first place.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.48 CLONE_SYMBOL

Function defined at file ‘warmelt-first.melt’, line 2456.

Function formals:

indextypename
0VALUESYMB

Function description: Function to clone a given symbol or string SYMB, producing a new instance of class_cloned_symbol


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

1.5.49 INSTALL_CTYPE_DESCR

Function defined at file ‘warmelt-first.melt’, line 1910.

Function formals:

indextypename
0VALUECTYP
1CSTRINGDESCR

Function description: Install a new ctype CTYP with descriptive string DESCR. Also add the ctype as symbol data in the keyword and the alternate keyword if provided.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated on June 22, 2011 using texi2html 1.82.