Changes between Version 15 and Version 16 of Things To Do


Ignore:
Timestamp:
02/02/10 08:35:29 (16 years ago)
Author:
Stephen Siegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Things To Do

    v15 v16  
    7171where X is the name of the variable and V its value. In a {{{RunConfiguration}}}, this is done using the method {{{setInput(String,Object)}}}. Now we don't need multiple versions of a single model which just differ by some bounds. Instead, just make the bound an input. I have applied this to several of the examples
    7272.
     73== Library Functions ==
     74
     75Special functions that are currently included in the grammar can instead be treated just like any other function and "linked in" at a later stage.   This will simplify the grammar and front-end. Functions that can be removed include {{{send}}}, {{{recv}}}, {{{allocate}}}, {{{deallocate}}}.
     76
     77When {{{ModelIF.complete}}} is invoked, it will look for functions which are called but not defined.   It will then look through a standard library for a function of the correct name, and add that function to the process containing the call.
     78
     79Note:  {{{allocate}}} takes a type argument, so we should also add to the grammar a new expression {{{sizeof(type)}}}.   The semantics module will associate a special symbolic constant to this expression, corresponding to the type (e.g., {{{SIZEOF_INT}}}).   We can then replace our {{{allocate}}} and {{{deallocate}}} with the standard C functions {{{malloc}}} and {{{free}}}