-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(parser): handle flags, prefixes, and suffixes in include files (#42)
In the toolchain, the parser holds the flags, prefixes and suffixes and the assembler uses them when finalizing the assembly. The parsers of include files, however, aren't known to the assembler. In addition, the flags, prefixes, and suffixes in include files must be scoped to the include file. This commit adds a new function to post process include file parsing. The included content is enclosed in a new assemble block and flags, prefixes, and suffixes are perpended / appended to the content. * Improve include file parsing and regular expressions Only wrap include file output in an assemble block if it is necessary, otherwise we might modify semantics
- Loading branch information
Showing
4 changed files
with
155 additions
and
16 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
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