You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a bit of an edge case, I'm not sure how this is supposed to be handled -- I don't have a concrete use case, just trying to implement my own parser in python using this as a reference
$ node vsc.js cap.json f
Tokenizing line: a b c d e f z
- token from 0 to 1 (a) with scopes test, matched, g1, g2
- token from 1 to 2 ( ) with scopes test, matched
- token from 2 to 3 (b) with scopes test, matched, g3, g4
- token from 3 to 5 ( c) with scopes test, matched, g3
- token from 5 to 6 ( ) with scopes test, matched
- token from 6 to 8 (d ) with scopes test, matched, g5
- token from 8 to 9 (e) with scopes test, matched, g5, g6
- token from 9 to 10 ( ) with scopes test, matched
- token from 10 to 11 (f) with scopes test, matched, g7f
- token from 11 to 12 ( ) with scopes test, matched, g7space
- token from 12 to 14 (z) with scopes test
I expect the f to have the scope test, matched, g7f, g8:
a bit of an edge case, I'm not sure how this is supposed to be handled -- I don't have a concrete use case, just trying to implement my own parser in python using this as a reference
sample grammar
sample file
tokenization using vs code
I expect the
f
to have the scopetest, matched, g7f, g8
:The text was updated successfully, but these errors were encountered: