-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Ast::tokens and Ast::flatten + tests
Ast::tokens is yet another casting method and returns an array of all tokens within the ast. Nested Ast still produces a flat array of tokens. Ast::flatten behaves the same as Ast::tokens except it returns an Ast instance
- Loading branch information
1 parent
a2329f8
commit 167443a
Showing
2 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
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
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