Get an array of all tokens #529
avigoldman
started this conversation in
General
Replies: 2 comments
-
duplicate with #528, I'd like to move this to discussion. The key point is parsing is recursive, and defined by each tag. That means the parsed structure is only known by the |
Beta Was this translation helpful? Give feedback.
0 replies
-
If we were to recursively flatten each node, would that have the same effect? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to get an array of all tokens? Currently I've got the following code:
This gives the top-level
Tag
,Output
, andHTML
tokens. I'm looking for a why to get a similar array but containing all of the tokens parsed all the way down.So ideally the end result would be an array of all tokens (
Number
,Literal
,Tag
,Output
,HTML
,Filter
,Hash
,PropertyAccess
,Word
,Range
,Quoted
,Operator
)Beta Was this translation helpful? Give feedback.
All reactions