Search
Preparing search index...
The search index is not available
@atomist/microgrammar
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"lib/matchers/lang/cfamily/NestingDepthStateMachine"
NestingDepthStateMachine
Class NestingDepthStateMachine
Track depth of curlies and parentheses in C family languages
Hierarchy
AbstractStateMachine
<
LangState
>
NestingDepthStateMachine
Implements
InputStateListener
Index
Constructors
constructor
Properties
depth
factory
kind
pop
push
state
state
Machine
Methods
clone
consume
read
Constructors
constructor
new
Nesting
Depth
State
Machine
(
kind
?:
"block"
|
"parens"
, factory
?:
function
, state
?:
LangState
, depth
?:
number
)
:
NestingDepthStateMachine
Parameters
Default value
kind:
"block"
|
"parens"
= "block"
Default value
factory:
function
= () => new CFamilyStateMachine()
(
)
:
LangStateMachine
Returns
LangStateMachine
Default value
state:
LangState
= Normal
Default value
depth:
number
= 0
Returns
NestingDepthStateMachine
Properties
depth
depth
:
number
Private
factory
factory
:
function
Type declaration
(
)
:
LangStateMachine
Returns
LangStateMachine
Private
kind
kind
:
"block"
|
"parens"
Private
pop
pop
:
string
Private
push
push
:
string
state
state
:
LangState
Private
state
Machine
state
Machine
:
LangStateMachine
Methods
clone
clone
(
)
:
NestingDepthStateMachine
Returns
NestingDepthStateMachine
consume
consume
(
char
:
string
)
:
void
Parameters
char:
string
Returns
void
read
read
(
s
:
string
)
:
this
Parameters
s:
string
Returns
this
Globals
"lib/matchers/lang/cfamily/
Nesting
Depth
State
Machine"
Nesting
Depth
State
Machine
constructor
depth
factory
kind
pop
push
state
state
Machine
clone
consume
read
Generated using
TypeDoc
Track depth of curlies and parentheses in C family languages