mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: remove unused cruft from flex-based lexers
This commit is contained in:
@ -91,23 +91,20 @@ cspace ","{space}
|
||||
|
||||
alpha [_A-Za-z]
|
||||
digit [0-9]
|
||||
dec_digit [0-9]
|
||||
octal_digit [0-7]
|
||||
hex_digit [0-9a-fA-F]
|
||||
|
||||
identifier {alpha}({alpha}|{digit})*
|
||||
integer {dec_digit}+
|
||||
label [1-9]{dec_digit}*
|
||||
integer {digit}+
|
||||
label [1-9]{digit}*
|
||||
|
||||
exponent_part [eE][-+]?{digit}+
|
||||
fractional_constant [-+]?(({digit}*"."{digit}+)|({digit}+"."?))
|
||||
|
||||
double (({fractional_constant}{exponent_part}?)|({digit}+{exponent_part}))
|
||||
floatNum (({fractional_constant}{exponent_part}?)|({digit}+{exponent_part}))
|
||||
|
||||
x {double}
|
||||
y {double}
|
||||
z {double}
|
||||
value {double}
|
||||
x {floatNum}
|
||||
y {floatNum}
|
||||
z {floatNum}
|
||||
value {floatNum}
|
||||
|
||||
node ^{space}"N"{cspace}
|
||||
element ^{space}"EN"{cspace}
|
||||
|
||||
@ -95,24 +95,14 @@ int yyFlexLexer::yywrap()
|
||||
one_space [ \t\f\r]
|
||||
space {one_space}*
|
||||
some_space {one_space}+
|
||||
cspace ","{space}
|
||||
spaceNl ({space}|\n)*
|
||||
|
||||
alpha [_[:alpha:]]
|
||||
digit [[:digit:]]
|
||||
dec_digit [[:digit:]]
|
||||
octal_digit [0-7]
|
||||
hex_digit [[:xdigit:]]
|
||||
|
||||
lbrac "("
|
||||
rbrac ")"
|
||||
quote \"
|
||||
dash "-"
|
||||
dotColonDash [.:-]
|
||||
dotColonDash [.:-]
|
||||
|
||||
identifier {alpha}({alpha}|{digit})*
|
||||
integer {dec_digit}+
|
||||
label [0-9]{dec_digit}*
|
||||
label [0-9]{digit}*
|
||||
zeroLabel {digit}*
|
||||
|
||||
word ({alpha}|{digit}|{dotColonDash})*
|
||||
@ -120,14 +110,14 @@ word ({alpha}|{digit}|{dotColonDash})*
|
||||
exponent_part [eE][-+]?{digit}+
|
||||
fractional_constant [-+]?(({digit}*"."{digit}+)|({digit}+"."?))
|
||||
|
||||
double ((({fractional_constant}{exponent_part}?)|({digit}+{exponent_part}))|0)
|
||||
floatNum ((({fractional_constant}{exponent_part}?)|({digit}+{exponent_part}))|0)
|
||||
|
||||
x {floatNum}
|
||||
y {floatNum}
|
||||
z {floatNum}
|
||||
|
||||
x {double}
|
||||
y {double}
|
||||
z {double}
|
||||
scalar {double}
|
||||
labelListElement {space}{zeroLabel}
|
||||
scalarListElement {space}{double}
|
||||
scalarListElement {space}{floatNum}
|
||||
labelList ({labelListElement}+{space})
|
||||
scalarList ({scalarListElement}+{space})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user