ENH: Updated fluent3DMeshToFoam Flex rules for reading header information

This commit is contained in:
andy
2012-03-22 14:48:27 +00:00
parent f19a5f2cdc
commit 79062e3fa2

View File

@ -163,6 +163,7 @@ hexLabel {hexDigit}+
zeroLabel {digit}* zeroLabel {digit}*
signedInteger [-+]?{integer} signedInteger [-+]?{integer}
word ({alpha}|{digit}|{dotColonDash})* word ({alpha}|{digit}|{dotColonDash})*
wordBraces ({word}|{lbrac}|{rbrac})*
exponent_part [eE][-+]?{digit}+ exponent_part [eE][-+]?{digit}+
fractional_constant [-+]?(({digit}*"."{digit}+)|({digit}+".")|({digit})) fractional_constant [-+]?(({digit}*"."{digit}+)|({digit}+".")|({digit}))
@ -184,6 +185,7 @@ schemeSymbolList ({schemeSymbolListElement}+{space})
starStar ("**") starStar ("**")
text ({space}({word}*{space})*) text ({space}({word}*{space})*)
textBraces ({space}({wordBraces}*{space})*)
anythingInBlock ([^)]*) anythingInBlock ([^)]*)
dateDDMMYYYY ({digit}{digit}"/"{digit}{digit}"/"{digit}{digit}{digit}{digit}) dateDDMMYYYY ({digit}{digit}"/"{digit}{digit}"/"{digit}{digit}{digit}{digit})
@ -276,11 +278,10 @@ endOfSection {space}")"{space}
BEGIN(readHeader); BEGIN(readHeader);
} }
<readHeader>{anythingInBlock} { <readHeader>{quote}{textBraces}{quote} {
Info<< "Header: " << YYText() << endl; Info<< "Reading header: " << YYText() << endl;
} }
{dimension} { {dimension} {
BEGIN(readDimension); BEGIN(readDimension);
} }