Last active
July 4, 2021 14:50
-
-
Save Tomalak/6dc5c1de36572894b51a48a7ab780047 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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