Impulse Graph C++ Engine 2.4.0
High-Performance Zero-Copy C-ABI Kernel and C++20 Fluent VM Engine
Loading...
Searching...
No Matches
impulse_cel.h File Reference

Google CEL (Common Expression Language) Zero-Dependency Pratt Parser & Compiler for Impulse Graph. More...

#include <iostream>
#include "impulse_vm.h"
#include "impulse_math_ops.h"
#include "impulse_assert.h"
#include <string>
#include <vector>
#include <memory>
#include <unordered_map>
#include <sstream>
#include <cstdint>
#include <cmath>
#include <cstring>
#include <bit>
Include dependency graph for impulse_cel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  impulse::cel::Token
class  impulse::cel::Lexer
struct  impulse::cel::AstNode
class  impulse::cel::Parser
class  impulse::cel::CelCompiler
class  impulse::cel::AstOptimizer
 Zero-Dependency AST Optimizer & Constant Folder for CEL ASTs. More...
class  impulse::cel::CelMultiLaneEvaluator
 Runtime evaluator for CEL Multi-Lane predicates (.filter / .pruneWhere) and selective per-lane mask mutations (.project("lane = ...")). More...
struct  impulse::cel::CelValue
 Typed value with Kleene 3-valued NULL semantics (Spec v0.10.0). More...
class  impulse::cel::CelKleeneEvaluator
 Spec v0.10.0 Kleene 3-valued CEL evaluator for node, edge, and multi-lane predicates. More...

Namespaces

namespace  impulse
namespace  impulse::cel

Enumerations

enum class  impulse::cel::TokenType {
  impulse::cel::END_OF_FILE , impulse::cel::IDENTIFIER , impulse::cel::INT_LITERAL , impulse::cel::FLOAT_LITERAL ,
  impulse::cel::STRING_LITERAL , impulse::cel::BOOL_LITERAL , impulse::cel::PLUS , impulse::cel::MINUS ,
  impulse::cel::STAR , impulse::cel::SLASH , impulse::cel::PERCENT , impulse::cel::EQ_EQ ,
  impulse::cel::BANG_EQ , impulse::cel::LT , impulse::cel::LT_EQ , impulse::cel::GT ,
  impulse::cel::GT_EQ , impulse::cel::AMP_AMP , impulse::cel::PIPE_PIPE , impulse::cel::BANG ,
  impulse::cel::AMP , impulse::cel::PIPE , impulse::cel::CARET , impulse::cel::TILDE ,
  impulse::cel::LT_LT , impulse::cel::GT_GT , impulse::cel::QUESTION , impulse::cel::COLON ,
  impulse::cel::DOT , impulse::cel::COMMA , impulse::cel::EQ , impulse::cel::LPAREN ,
  impulse::cel::RPAREN , impulse::cel::LBRACKET , impulse::cel::RBRACKET , impulse::cel::LBRACE ,
  impulse::cel::RBRACE , impulse::cel::KW_IN , impulse::cel::KW_AS
}
enum class  impulse::cel::AstKind {
  impulse::cel::LITERAL_INT , impulse::cel::LITERAL_FLOAT , impulse::cel::LITERAL_BOOL , impulse::cel::LITERAL_STRING ,
  impulse::cel::IDENTIFIER , impulse::cel::MEMBER_ACCESS , impulse::cel::UNARY_OP , impulse::cel::BINARY_OP ,
  impulse::cel::TERNARY_OP , impulse::cel::FUNCTION_CALL , impulse::cel::LIST_LITERAL
}
enum  impulse::cel::Precedence {
  impulse::cel::PREC_NONE = 0 , impulse::cel::PREC_ASSIGN , impulse::cel::PREC_CONDITIONAL , impulse::cel::PREC_OR ,
  impulse::cel::PREC_AND , impulse::cel::PREC_COMPARE , impulse::cel::PREC_BIT_OR , impulse::cel::PREC_BIT_XOR ,
  impulse::cel::PREC_BIT_AND , impulse::cel::PREC_SHIFT , impulse::cel::PREC_ADD_SUB , impulse::cel::PREC_MUL_DIV ,
  impulse::cel::PREC_UNARY , impulse::cel::PREC_CALL_MEMBER
}

Detailed Description

Google CEL (Common Expression Language) Zero-Dependency Pratt Parser & Compiler for Impulse Graph.

Implements standard CEL grammar, temporal extensions (timestamp, duration), 42-function analytical vector math catalog, and lowering to ImpScheme IR & impOps bytecode.