summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsFortranParser.y
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-01-28 22:13:03 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-01-28 22:13:03 (GMT)
commit3a67582df81e7e528894bc2a20976c860da4c915 (patch)
tree137fd794c6fdba505e504e4e0f45afda5a6636eb /Source/cmDependsFortranParser.y
parent1d1aafda5917cf09eb027ac73373667ec27beddf (diff)
downloadCMake-3a67582df81e7e528894bc2a20976c860da4c915.zip
CMake-3a67582df81e7e528894bc2a20976c860da4c915.tar.gz
CMake-3a67582df81e7e528894bc2a20976c860da4c915.tar.bz2
STYLE: Add some diff helping comments
Diffstat (limited to 'Source/cmDependsFortranParser.y')
-rw-r--r--Source/cmDependsFortranParser.y6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmDependsFortranParser.y b/Source/cmDependsFortranParser.y
index 99b513c..190a33a 100644
--- a/Source/cmDependsFortranParser.y
+++ b/Source/cmDependsFortranParser.y
@@ -46,6 +46,7 @@ Modify cmDependsFortranParser.c:
#define cmDependsFortran_yyerror(x) \
cmDependsFortranError(yyscanner, x)
+/*-------------------------------------------------------------------------*/
#include "cmDependsFortranLexer.h" /* Interface to lexer object. */
#include "cmDependsFortranParser.h" /* Interface to parser object. */
#include "cmDependsFortranParserTokens.h" /* Need YYSTYPE for YY_DECL. */
@@ -72,6 +73,8 @@ static void cmDependsFortranError(yyscan_t yyscanner, const char* message);
char* string;
}
+/*-------------------------------------------------------------------------*/
+/* Tokens */
%token USE F_INCLUDE MODULE EOSTMT
%token CPP_INCLUDE F90PPR_INCLUDE COCO_INCLUDE
%token F90PPR_DEFINE CPP_DEFINE F90PPR_UNDEF CPP_UNDEF
@@ -80,6 +83,8 @@ static void cmDependsFortranError(yyscan_t yyscanner, const char* message);
%token UNTERMINATED_STRING
%token <string> CPP_TOENDL STRING WORD
+/*-------------------------------------------------------------------------*/
+/* grammar */
%%
code: /* empty */ | code stmt ;
@@ -170,6 +175,7 @@ misc_code:
;
%%
+/* End of grammar */
/*--------------------------------------------------------------------------*/
void cmDependsFortranError(yyscan_t yyscanner, const char* message)