hermes_rs 0.1.5

A dependency-free disassembler and assembler for the Hermes bytecode
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// https://github.com/facebook/hermes/blob/main/include/hermes/Regex/RegexBytecode.h
// https://github.com/facebook/hermes/blob/main/include/hermes/Regex/RegexOpcodes.def


// // RegexBytecodeHeader
// pub struct RegexBytecodeHeader {
//   // Number of capture groups.
//   u16 markedCount,

//   // Number of loops.
//   u16 loopCount,

//   // Syntax flags used to construct the regex.
//   u8 syntaxFlags,

//   /// Constraints on what strings can match this regex.
//   MatchConstraintSet constraints,
// }