Purple  0.1
Standard Language Specification
Classes | Macros | Typedefs
function.h File Reference

Struct definitions and macros for functions. More...

#include "scan.h"
Include dependency graph for function.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FunctionParameter
 Container for function parameter information. More...
 
struct  Function
 Container for function information. More...
 

Macros

#define FUNCTION_FROM_OUT_IN(output_type, input_list, num_inputs)
 Generates a Function struct given an output type and a linked list of input types. More...
 

Typedefs

typedef struct FunctionParameter FunctionParameter
 Container for function parameter information. More...
 
typedef struct Function Function
 Container for function information. More...
 

Detailed Description

Struct definitions and macros for functions.

Author
Charles Averill
Date
05-Oct-2022

Macro Definition Documentation

◆ FUNCTION_FROM_OUT_IN

#define FUNCTION_FROM_OUT_IN (   output_type,
  input_list,
  num_inputs 
)
Value:
{ \
.return_type = output_type, .parameters = input_list, .num_parameters = num_inputs \
}
struct Function Function
Container for function information.

Generates a Function struct given an output type and a linked list of input types.

Typedef Documentation

◆ Function

typedef struct Function Function

Container for function information.

◆ FunctionParameter

Container for function parameter information.