Commit 323d3b62 authored by Pascal Noisette's avatar Pascal Noisette
Browse files

gestion du "color color color"

parent 889c41c0
......@@ -3,15 +3,23 @@
// string buffer;
int starttoken(int* cursor){
while(line[cursor]==' ')
cursor++;
return cursor;
while(line[*cursor]==' ')
*cursor++;
return *cursor;
}
int stopnexttoken(int* cursor){
while(line[cursor]!=' ' || line[cursor]!='\n' || line[cursor]!='\0')
cursor++;
return cursor;
if (line[*cursor]!='"'){
while(line[cursor]!='"' || line[cursor]!='\n' || line[cursor]!='\0')
*cursor++;
return cursor
}
else{
while(line[cursor]!=' ' || line[cursor]!='\n' || line[cursor]!='\0')
cursor++;
return cursor;
}
}
void Line::store(std::ifstream &file){
......
Supports Markdown
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