Numworks Epsilon  1.4.1
Graphing Calculator Operating System
parsenum.c File Reference
#include <stdbool.h>
#include <stdlib.h>
#include "py/runtime.h"
#include "py/parsenumbase.h"
#include "py/parsenum.h"
#include "py/smallint.h"

Go to the source code of this file.

Enumerations

enum  parse_dec_in_t { PARSE_DEC_IN_INTG, PARSE_DEC_IN_FRAC, PARSE_DEC_IN_EXP }
 

Functions

STATIC NORETURN void raise_exc (mp_obj_t exc, mp_lexer_t *lex)
 
mp_obj_t mp_parse_num_integer (const char *restrict str_, size_t len, int base, mp_lexer_t *lex)
 
mp_obj_t mp_parse_num_decimal (const char *str, size_t len, bool allow_imag, bool force_complex, mp_lexer_t *lex)
 

Enumeration Type Documentation

◆ parse_dec_in_t

Enumerator
PARSE_DEC_IN_INTG 
PARSE_DEC_IN_FRAC 
PARSE_DEC_IN_EXP 

Definition at line 165 of file parsenum.c.

Function Documentation

◆ mp_parse_num_decimal()

mp_obj_t mp_parse_num_decimal ( const char *  str,
size_t  len,
bool  allow_imag,
bool  force_complex,
mp_lexer_t lex 
)

Definition at line 171 of file parsenum.c.

◆ mp_parse_num_integer()

mp_obj_t mp_parse_num_integer ( const char *restrict  str_,
size_t  len,
int  base,
mp_lexer_t lex 
)

Definition at line 49 of file parsenum.c.

◆ raise_exc()

STATIC NORETURN void raise_exc ( mp_obj_t  exc,
mp_lexer_t lex 
)

Definition at line 39 of file parsenum.c.