1
1

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.
Этот коммит содержится в:
Josh Hursey 2005-08-01 21:14:09 +00:00
родитель 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; }