Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit d69839e7 authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Need to finalize gobal variable parsing and use

parent c0e17708
......@@ -352,6 +352,9 @@ bool PGraphParser::parseVector(){
type += ")";
}
std::string name(getStrComposedOf(p_charsetName));
//We can imagine an initialisation such as = [value, value, value] or [[value, value], [value, value]] etc
if(!checkExprectedMatch(";", name)) return false;
PVarToken vecToken;
......@@ -371,6 +374,8 @@ bool PGraphParser::parseGlobalVar(){
if(matchCurrentToken == ""){return false;}
std::string type(getStrComposedOf(p_charsetName));
std::string name(getStrComposedOf(p_charsetName));
//We can imagine an intialisation such as '= value' or '="string"'
if(!checkExprectedMatch(";", name)) return false;
PVarToken var;
var.setNbVector(0lu);
......@@ -401,11 +406,20 @@ bool PGraphParser::parseGlobalVarUse(){
if(currentVar->getNbVector() == 0lu){
//Put a parsed value in the variable
//Look for a =
//And then put the value/string in the variable
}else{
//Check if the push_back function is called and generated this function call in the InitialisationFunction
//of the parser
//Look for a '='
//Look for a '.' then 'pushBack(value)', 'front()', 'back()', '[index]', 'clear()', 'concatenate(value, value, value, value)'
}
//Then expect a ;
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment