Skip to content

Instantly share code, notes, and snippets.

@Tomalak
Last active July 4, 2021 14:50
Show Gist options
  • Save Tomalak/6dc5c1de36572894b51a48a7ab780047 to your computer and use it in GitHub Desktop.
Save Tomalak/6dc5c1de36572894b51a48a7ab780047 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
const fetchMachine = Machine({
id: 'Ichidan',
initial: 'noun',
meta: 'test',
context: {
},
states: {
noun: {
meta: '捨て',
on: {
る: 'infinitive',
て: 'connective',
ま: 'polite',
な: 'negative',
}
},
infinitive: {
meta: '捨てる',
type: 'final'
},
polite: {
meta: '捨てま~',
on: {
す: 'affirmative',
した: 'past',
せん: 'negative',
せんでした: 'negative',
}
},
affirmative: {
type: 'final'
},
negative: {
on: {
た: 'past'
}
},
negative: {
meta: 'すてな',
on: {
い: 'adjective',
く: 'adverb'
}
},
adjective: {
type: 'final'
},
adverb: {
on: {
く: 'adjective'
}
},
connective: {
meta: 'すてて',
on: {
い: 'continuous'
}
},
continuous: {
meta: 'すててい',
on: {
た: 'past',
ま: ''
}
},
past: {
type: 'final'
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment