Loading...
Searching...
No Matches
node_re_lex.h
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2016, Olivier MATZ <zer0@droids-corp.org>
*/
#pragma once
#include <ecoli/node.h>
struct ec_node *ec_node_re_lex(const char *id, struct ec_node *child);
int ec_node_re_lex_add(
struct ec_node *gen_node,
const char *pattern,
int keep,
const char *attr_name
);
ec_node_re_lex
struct ec_node * ec_node_re_lex(const char *id, struct ec_node *child)
Create a regex-based lexer node.
ec_node_re_lex_add
int ec_node_re_lex_add(struct ec_node *gen_node, const char *pattern, int keep, const char *attr_name)
Add a token pattern to a regex lexer node.
ec_node
struct ec_node * ec_node(const char *typename, const char *id)
Create a new node from its type name.