Added naieve string and char literal parsing

This commit is contained in:
2022-08-11 02:47:51 -05:00
parent 3768e3454f
commit 758b85e735
4 changed files with 55 additions and 9 deletions

View File

@@ -58,6 +58,9 @@ func (lexer *LexingOperation) tokenizeNumberBeginning (negative bool) (err error
return
}
// runeToDigit converts a rune from 0-F to a corresponding digit, with a maximum
// radix. If the character is invalid, or the digit is too big, it will return
// false for worked.
func runeToDigit (char rune, radix uint64) (digit uint64, worked bool) {
worked = true