-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement parsing to a list of tokens (#695)
Implement parsing to a list of tokens Added to TopLevelParser: * def parseToTokens(input:RiddlParseInput): Either[Messages,List[Token]] Added these case classes to AST as the set of possible results returned from TopLevelParser.parseToTokens: * case class PunctuationTKN(at: At) extends Token * case class QuotedStringTKN(at: At) extends Token * case class ReadabilityTKN(at: At) extends Token * case class PredefinedTKN(at: At) extends Token * case class KeywordTKN(at: At) extends Token * case class CommentTKN(at: At) extends Token * case class LiteralStringTKN(at: At) extends Token * case class MarkdownLinesTKN(at: At) extends Token * case class IdentifierTKN(at: At) extends Token * case class OtherTKN(at: At) extends Token This allows for distinguishing the basic kinds of input being parsed.
- Loading branch information
1 parent
ef3af14
commit 2747020
Showing
14 changed files
with
699 additions
and
90 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
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.