diff options
author | Brad King <brad.king@kitware.com> | 2016-09-05 15:54:51 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-09-08 09:40:02 -0400 |
commit | 695f0d0d3a2db22d2ee3a426df8a1ec502cd471b (patch) | |
tree | 430d7aafdf9c1f28ffed28d0ed569d842f51695f /Source/cmFortranLexer.h | |
parent | 1619fb46a88accd1e6864f0c9de27ae2fd46541a (diff) | |
download | cmake-695f0d0d3a2db22d2ee3a426df8a1ec502cd471b.tar.gz |
cmFortranParser: Parse keywords as lexical tokens
Teach the lexer to match and return specific Fortran keywords as tokens.
Update the parser to use these instead of always using a WORD token and
then checking the text. This avoids extra string comparisons and will
allow more grammar productions to be unambiguously added later for
additional Fortran statements.
Diffstat (limited to 'Source/cmFortranLexer.h')
-rw-r--r-- | Source/cmFortranLexer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFortranLexer.h b/Source/cmFortranLexer.h index e20c0aa957..cb175ec621 100644 --- a/Source/cmFortranLexer.h +++ b/Source/cmFortranLexer.h @@ -337,7 +337,7 @@ extern int cmFortran_yylex (yyscan_t yyscanner); #undef YY_DECL #endif -#line 176 "cmFortranLexer.in.l" +#line 182 "cmFortranLexer.in.l" #line 344 "cmFortranLexer.h" |