Added comments to lex parser. Now you can have a hostfile that looks like:
# # this is my hostfile # frogger1 frogger2 #frogger3 and it will only use frogger 1&2. This commit was SVN r6692.
Этот коммит содержится в:
родитель
ea0cf322f3
Коммит
9447050dcf
@ -37,15 +37,19 @@ bool orte_rds_hostfile_done = false;
|
|||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
WHITE [\f\t\v ]
|
||||||
|
|
||||||
%%
|
%%
|
||||||
|
|
||||||
\n { orte_rds_hostfile_line++;
|
{WHITE}*\n { orte_rds_hostfile_line++;
|
||||||
|
return ORTE_RDS_HOSTFILE_NEWLINE; }
|
||||||
|
#.*\n { orte_rds_hostfile_line++;
|
||||||
return ORTE_RDS_HOSTFILE_NEWLINE; }
|
return ORTE_RDS_HOSTFILE_NEWLINE; }
|
||||||
|
|
||||||
\"[^\"]*\" { orte_rds_hostfile_value.sval = yytext;
|
\"[^\"]*\" { orte_rds_hostfile_value.sval = yytext;
|
||||||
return ORTE_RDS_HOSTFILE_QUOTED_STRING; }
|
return ORTE_RDS_HOSTFILE_QUOTED_STRING; }
|
||||||
|
|
||||||
[\f\t\v ] ; /* whitespace */
|
{WHITE}+ ; /* whitespace */
|
||||||
|
|
||||||
"=" { return ORTE_RDS_HOSTFILE_EQUAL; }
|
"=" { return ORTE_RDS_HOSTFILE_EQUAL; }
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user