Project

General

Profile

« Previous | Next » 

Revision 5538b7ac

Added by Xavier Thirioux about 11 years ago

Added declaration/definition of stateless/stateful nodes.
The 'function' keyword is for stateless nodes only,
the 'node' keyword is any kind of node.
Improves compilation and paves the way for more optimizations.

View differences:

src/printers.ml
286 286
  match decl.top_decl_desc with
287 287
  | Node nd ->  
288 288
    fprintf fmt 
289
      "@[<v>node %s (%a) returns (%a);@ @]@ "
289
      "@[<v>%s %s (%a) returns (%a);@ @]@ "
290
      (if Stateless.check_node decl then "function" else "node")
290 291
      nd.node_id
291 292
      pp_node_args nd.node_inputs
292 293
      pp_node_args nd.node_outputs

Also available in: Unified diff