librdesc
Loading...
Searching...
No Matches
Functions
bc_interpreter.h File Reference

Basic interpreter for bc. More...

#include "../../include/cst_macros.h"
#include "../../include/rdesc.h"
#include "../../include/util.h"
#include "../../src/common.h"
#include "../grammar/bc.h"
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
Include dependency graph for bc_interpreter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static double bc_pow10 (int i)
 Raises 10 to the power of i.
 
static double bc_interpreter (struct rdesc *p, struct rdesc_node *n)
 Interprets CST of bc.
 
static void bc_tk_destroyer (uint16_t tk, void *seminfo_)
 Frees seminfo of a bc token.
 

Detailed Description

Basic interpreter for bc.

Definition in file bc_interpreter.h.

Function Documentation

◆ bc_interpreter()

static double bc_interpreter ( struct rdesc p,
struct rdesc_node *  n 
)
inlinestatic

Interprets CST of bc.

Definition at line 33 of file bc_interpreter.h.

◆ bc_pow10()

static double bc_pow10 ( int  i)
inlinestatic

Raises 10 to the power of i.

Definition at line 22 of file bc_interpreter.h.

◆ bc_tk_destroyer()

static void bc_tk_destroyer ( uint16_t  tk,
void *  seminfo_ 
)
inlinestatic

Frees seminfo of a bc token.

Definition at line 128 of file bc_interpreter.h.