Skip to content
Extraits de code Groupes Projets
Vérifiée Valider a95b8836 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

FIX: Register the import token for the lexer

parent 37088533
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!25Draft: New Vivy module spec
...@@ -36,7 +36,7 @@ while (tokenListIsNotEmpty(tokens)) { ...@@ -36,7 +36,7 @@ while (tokenListIsNotEmpty(tokens)) {
if (Token::Type::SIMPLE != firstToken.valueType()) { if (Token::Type::SIMPLE != firstToken.valueType()) {
throw std::runtime_error(firstToken.location().toString() + throw std::runtime_error(firstToken.location().toString() +
": Expected a simple token to begin a declaration " ": Expected a simple token to begin a declaration "
"(option, module, job, etc), but got " + "(option, module, job, import, etc), but got " +
firstToken.toString()); firstToken.toString());
} }
......
...@@ -106,6 +106,7 @@ namespace Vivy::Script ...@@ -106,6 +106,7 @@ namespace Vivy::Script
TOKEN_COL, TOKEN_COL,
TOKEN_PIPE, TOKEN_PIPE,
TOKEN_MODULE, TOKEN_MODULE,
TOKEN_IMPORT,
TOKEN_HASHTAG, TOKEN_HASHTAG,
TOKEN_HAT, TOKEN_HAT,
TOKEN_VOID, TOKEN_VOID,
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter