Skip to content

WalRemainingOperators

class WalRemainingOperators

@brief The last of upstream WAL's operators.

These are the ones left over once the language core, the analysis vocabulary and the standard library were in place. They fall into four groups:

  • running data as code: eval, parse, eval-file, require
  • trace queries: loaded-traces, find/g
  • trace authoring: new-trace, defsig, dump-trace, trim-trace, sample-at
  • scope as a statement: set-scope, unset-scope
  • conversion: bits->sint

import and call are upstream's bridge to the CPython interpreter it runs inside. There is no equivalent in a C++ program, so rather than pretend, they are registered and fail with a message that says exactly that. A script reaching for them gets a clear answer instead of "Undefined variable".

Functions

Name Description
restore Put every trace back where it was before a sweep.

Function Details

restore

static void restore(SEval& eval, const std::unordered_map<std::string, int>& saved)

Put every trace back where it was before a sweep.