-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with parsing floats (fixes #21)
- Loading branch information
1 parent
4c63d52
commit 9711e93
Showing
6 changed files
with
388 additions
and
262 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
553 changes: 295 additions & 258 deletions
553
src/main/gen/com/kinglozzer/silverstripe/parser/_SilverstripeLexer.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{$Test(0)} | ||
{$Test(-0123)} | ||
{$Test(0x1A)} | ||
{$Test(0b11111111)} | ||
{$Test(15.25)} | ||
{$Test(7E-2)} | ||
{$Test(-1.2e3)} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
FILE | ||
SilverstripePsiElementImpl([Ss] SS_STATEMENTS) | ||
PsiElement(SS_LEFT_BRACE)('{') | ||
SilverstripePsiElementImpl([Ss] SS_LOOKUP) | ||
SilverstripeLookupStepImpl([Ss] SS_LOOKUP_STEP) | ||
PsiElement([Ss] SS_LOOKUP)('$Test') | ||
PsiElement(SS_LEFT_PARENTHESIS)('(') | ||
SilverstripePsiElementImpl([Ss] SS_LOOKUP_STEP_ARGS) | ||
PsiElement(SS_NUMBER)('0') | ||
PsiElement(SS_RIGHT_PARENTHESIS)(')') | ||
PsiElement(SS_RIGHT_BRACE)('}') | ||
PsiWhiteSpace('\n') | ||
PsiElement(SS_LEFT_BRACE)('{') | ||
SilverstripePsiElementImpl([Ss] SS_LOOKUP) | ||
SilverstripeLookupStepImpl([Ss] SS_LOOKUP_STEP) | ||
PsiElement([Ss] SS_LOOKUP)('$Test') | ||
PsiElement(SS_LEFT_PARENTHESIS)('(') | ||
SilverstripePsiElementImpl([Ss] SS_LOOKUP_STEP_ARGS) | ||
PsiElement(SS_NUMBER)('-0123') | ||
PsiElement(SS_RIGHT_PARENTHESIS)(')') | ||
PsiElement(SS_RIGHT_BRACE)('}') | ||
PsiWhiteSpace('\n') | ||
PsiElement(SS_LEFT_BRACE)('{') | ||
SilverstripePsiElementImpl([Ss] SS_LOOKUP) | ||
SilverstripeLookupStepImpl([Ss] SS_LOOKUP_STEP) | ||
PsiElement([Ss] SS_LOOKUP)('$Test') | ||
PsiElement(SS_LEFT_PARENTHESIS)('(') | ||
SilverstripePsiElementImpl([Ss] SS_LOOKUP_STEP_ARGS) | ||
PsiElement(SS_NUMBER)('0x1A') | ||
PsiElement(SS_RIGHT_PARENTHESIS)(')') | ||
PsiElement(SS_RIGHT_BRACE)('}') | ||
PsiWhiteSpace('\n') | ||
PsiElement(SS_LEFT_BRACE)('{') | ||
SilverstripePsiElementImpl([Ss] SS_LOOKUP) | ||
SilverstripeLookupStepImpl([Ss] SS_LOOKUP_STEP) | ||
PsiElement([Ss] SS_LOOKUP)('$Test') | ||
PsiElement(SS_LEFT_PARENTHESIS)('(') | ||
SilverstripePsiElementImpl([Ss] SS_LOOKUP_STEP_ARGS) | ||
PsiElement(SS_NUMBER)('0b11111111') | ||
PsiElement(SS_RIGHT_PARENTHESIS)(')') | ||
PsiElement(SS_RIGHT_BRACE)('}') | ||
PsiWhiteSpace('\n') | ||
PsiElement(SS_LEFT_BRACE)('{') | ||
SilverstripePsiElementImpl([Ss] SS_LOOKUP) | ||
SilverstripeLookupStepImpl([Ss] SS_LOOKUP_STEP) | ||
PsiElement([Ss] SS_LOOKUP)('$Test') | ||
PsiElement(SS_LEFT_PARENTHESIS)('(') | ||
SilverstripePsiElementImpl([Ss] SS_LOOKUP_STEP_ARGS) | ||
PsiElement(SS_NUMBER)('15.25') | ||
PsiElement(SS_RIGHT_PARENTHESIS)(')') | ||
PsiElement(SS_RIGHT_BRACE)('}') | ||
PsiWhiteSpace('\n') | ||
PsiElement(SS_LEFT_BRACE)('{') | ||
SilverstripePsiElementImpl([Ss] SS_LOOKUP) | ||
SilverstripeLookupStepImpl([Ss] SS_LOOKUP_STEP) | ||
PsiElement([Ss] SS_LOOKUP)('$Test') | ||
PsiElement(SS_LEFT_PARENTHESIS)('(') | ||
SilverstripePsiElementImpl([Ss] SS_LOOKUP_STEP_ARGS) | ||
PsiElement(SS_NUMBER)('7E-2') | ||
PsiElement(SS_RIGHT_PARENTHESIS)(')') | ||
PsiElement(SS_RIGHT_BRACE)('}') | ||
PsiWhiteSpace('\n') | ||
PsiElement(SS_LEFT_BRACE)('{') | ||
SilverstripePsiElementImpl([Ss] SS_LOOKUP) | ||
SilverstripeLookupStepImpl([Ss] SS_LOOKUP_STEP) | ||
PsiElement([Ss] SS_LOOKUP)('$Test') | ||
PsiElement(SS_LEFT_PARENTHESIS)('(') | ||
SilverstripePsiElementImpl([Ss] SS_LOOKUP_STEP_ARGS) | ||
PsiElement(SS_NUMBER)('-1.2e3') | ||
PsiElement(SS_RIGHT_PARENTHESIS)(')') | ||
PsiElement(SS_RIGHT_BRACE)('}') |
9711e93
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, Loz! 🍻