]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/src/engine/scan.h
2 * Copyright 1993, 1995 Christopher Seiwald.
4 * This file is part of Jam - see jam.c for Copyright information.
8 * scan.h - the jam yacc scanner
11 * yyerror( char *s ) - print a parsing error message.
12 * yyfparse( char *s ) - scan include file s.
13 * yylex() - parse the next token, returning its type.
14 * yymode() - adjust lexicon of scanner.
15 * yyparse() - declaration for yacc parser.
16 * yyanyerrors() - indicate if any parsing errors occured.
18 * The yymode() function is for the parser to adjust the lexicon of the scanner.
19 * Aside from normal keyword scanning, there is a mode to handle action strings
20 * (look only for the closing }) and a mode to ignore most keywords when looking
21 * for a punctuation keyword. This allows non-punctuation keywords to be used in
22 * lists without quoting.
31 * YYSTYPE - value of a lexical token
34 #define YYSTYPE YYSYMBOL
36 typedef struct _YYSTYPE
48 extern YYSTYPE yylval
;
51 void yyerror( char const * s
);
53 void yyfparse( OBJECT
* s
);
55 void yysparse( OBJECT
* name
, const char * * lines
);
59 void yyinput_last_read_token( OBJECT
* * name
, int * line
);
61 #define SCAN_NORMAL 0 /* normal parsing */
62 #define SCAN_STRING 1 /* look only for matching } */
63 #define SCAN_PUNCT 2 /* only punctuation keywords */