mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated fluent3DMeshToFoam Flex rules for reading header information
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user