ACT Library
Loading...
Searching...
No Matches
Functions | Variables
fexpr.h File Reference

Functions to support the faster expression parser used by CHP/dataflow bodies. More...

#include <stdio.h>
#include <act/lang.h>
#include <common/file.h>
#include "treetypes.h"
#include "expr.h"

Go to the source code of this file.

Functions

void act_init_fexpr (LFILE *)
 
int act_is_a_fexpr (LFILE *)
 
void act_free_a_fexpr (void *)
 
void * act_parse_a_fexpr (LFILE *)
 
void * act_walk_X_fexpr (ActTree *, void *)
 

Variables

Expr *(* expr_parse_basecase_extra )(LFILE *l)
 

Detailed Description

Functions to support the faster expression parser used by CHP/dataflow bodies.

Function Documentation

◆ act_free_a_fexpr()

void act_free_a_fexpr ( void *  )

External parser for fast expression parsing: free returned data

◆ act_init_fexpr()

void act_init_fexpr ( LFILE *  )

External parser for fast expression parsing: initialization function

◆ act_is_a_fexpr()

int act_is_a_fexpr ( LFILE *  )

External parser for fast expression parsing: return 1 if next symbol could be the start of an expression

◆ act_parse_a_fexpr()

void * act_parse_a_fexpr ( LFILE *  )

External parser for fast expression parsing: parse an expression, returning NULL on error, or data structure otherwise (returns an Expr *)

◆ act_walk_X_fexpr()

void * act_walk_X_fexpr ( ActTree *  ,
void *   
)

External parser for fast expression parsing: walk the parser data structure, returning the walked fexpr type (which is also an Expr ). This just calls the act_walk_X_expr() function, since it returns the same data structure as a standard expression.

Variable Documentation

◆ expr_parse_basecase_extra

Expr *(* expr_parse_basecase_extra) (LFILE *l) ( LFILE *  l)
extern