ttx 0.1.0
Loading...
Searching...
No Matches
escape_sequence_parser.cpp File Reference
#include "ttx/escape_sequence_parser.h"
#include "di/parser/prelude.h"
#include "di/util/scope_exit.h"

Namespaces

namespace  ttx
 

Macros

#define STATE(state)
 
#define ON_ENTRY_NOOP(state)
 
#define ON_ENTRY(state)
 
#define __ENUMERATE_STATE(N, n)
 

Functions

 ttx::STATE (ground)
 
 ttx::STATE (escape)
 
 ttx::STATE (escape_intermediate)
 
 ttx::STATE (csi_entry)
 
 ttx::STATE (csi_intermediate)
 
 ttx::STATE (csi_param)
 
 ttx::STATE (csi_ignore)
 
 ttx::STATE (dcs_entry)
 
 ttx::STATE (dcs_param)
 
 ttx::STATE (dcs_intermediate)
 
 ttx::STATE (dcs_passthrough)
 
 ttx::STATE (dcs_ignore)
 
 ttx::STATE (osc_string)
 
 ttx::STATE (apc_string)
 
 ttx::STATE (sos_pm_string)
 
 ttx::STATE (ss3)
 

Macro Definition Documentation

◆ __ENUMERATE_STATE

#define __ENUMERATE_STATE ( N,
n )
Value:
case State::N: \
return n##_state(code_point);

◆ ON_ENTRY

#define ON_ENTRY ( state)
Value:
auto __did_transition = State::state != m_last_state; \
m_last_state = State::state; \
if (__did_transition)

◆ ON_ENTRY_NOOP

#define ON_ENTRY_NOOP ( state)
Value:
do { \
m_last_state = State::state; \
} while (0)

◆ STATE

#define STATE ( state)
Value:
void EscapeSequenceParser::state##_state([[maybe_unused]] c32 code_point)