Add tests for capital literals

This commit is contained in:
Vasily
2019-05-25 18:49:42 +02:00
committed by username223
parent ef0e679344
commit d5cb19cea1
2 changed files with 101 additions and 0 deletions
+12
View File
@@ -57,6 +57,8 @@ std::optional<Token> getFunctionNumber( const char& character )
}
}
std::optional<Token> checkIfLegalCapitalLiteral( std::string input ) {}
std::vector<Token> ParseKeyboardInputsToTokens( const std::string inputs )
{
std::vector<Token> tokens{};
@@ -106,6 +108,16 @@ std::vector<Token> ParseKeyboardInputsToTokens( const std::string inputs )
break;
}
}
std::string characters = "";
characters.push_back( *ch );
while ( auto a = checkIfLegalCapitalLiteral( characters ) )
{
}
// while not recognized character
// ++ch
// if end break
// add token
}
return tokens;