-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make tokens a struct instead of a class * Cache a StringBuilder in `DMPreprocessorLexer` It's not necessary to be creating a new one for every token that uses it Can't do this in `LexString()` unfortunately because it has a nested `NextToken()` call * Use a file-scoped namespace in `DMVisitorExpression.cs` * Turn `DMVisitorExpression` into `DMExpressionBuilder` Not a DMASTVisitor Static class, doesn't need to be instantiated/allocated every time it's used * Fix some inferred paths * Make the cached StringBuilder `readonly` * Cache a StringBuilder in `DMLexer` * Use a file-scoped namespace in `DMLexer.cs`
- Loading branch information
Showing
11 changed files
with
1,265 additions
and
1,469 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.