Created
March 23, 2020 09:35
-
-
Save johnnydecimal/86e70ac75b1ad36a9ac4a4b5a34bbd42 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
This file contains hidden or 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
// Linked to play.jd.com. | |
// Do not delete or edit. | |
const jdLanguage = Machine({ | |
id: 'jdLanguage', | |
initial: 'start', | |
states: { | |
start: { | |
on: { | |
FIND_AREA: 'area_detected', | |
FIND_EOF: 'eof', | |
FIND_OTHER: 'error', | |
}, | |
}, | |
'area_detected': { | |
on: { | |
FIND_AREA: 'area_detected', | |
FIND_CATEGORY: 'category_detected', | |
FIND_EOF: 'eof', | |
FIND_OTHER: 'error', | |
}, | |
}, | |
'category_detected': { | |
on: { | |
FIND_AREA: 'area_detected', | |
FIND_CATEGORY: 'category_detected', | |
FIND_ID: 'id_detected', | |
FIND_EOF: 'eof', | |
FIND_OTHER: 'error', | |
}, | |
}, | |
'id_detected': { | |
on: { | |
FIND_AREA: 'area_detected', | |
FIND_CATEGORY: 'category_detected', | |
FIND_ID: 'id_detected', | |
FIND_EOF: 'eof', | |
FIND_OTHER: 'error', | |
}, | |
}, | |
eof: {}, | |
error: {}, | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment