token.h revision 156702
17106Sbriangoetz/*- 27106Sbriangoetz * Copyright (c) 2003-2004, Maxime Henrion <mux@FreeBSD.org> 37106Sbriangoetz * All rights reserved. 47106Sbriangoetz * 57106Sbriangoetz * Redistribution and use in source and binary forms, with or without 67106Sbriangoetz * modification, are permitted provided that the following conditions 77106Sbriangoetz * are met: 87106Sbriangoetz * 1. Redistributions of source code must retain the above copyright 97106Sbriangoetz * notice, this list of conditions and the following disclaimer. 107106Sbriangoetz * 2. Redistributions in binary form must reproduce the above copyright 117106Sbriangoetz * notice, this list of conditions and the following disclaimer in the 127106Sbriangoetz * documentation and/or other materials provided with the distribution. 137106Sbriangoetz * 147106Sbriangoetz * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 157106Sbriangoetz * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 167106Sbriangoetz * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 177106Sbriangoetz * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 187106Sbriangoetz * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 197106Sbriangoetz * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 207106Sbriangoetz * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 217106Sbriangoetz * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 227106Sbriangoetz * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 237106Sbriangoetz * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 247106Sbriangoetz * SUCH DAMAGE. 257106Sbriangoetz * 267106Sbriangoetz * $FreeBSD: head/contrib/csup/token.h 156702 2006-03-14 03:51:13Z mux $ 277106Sbriangoetz */ 287106Sbriangoetz#ifndef _TOKEN_H_ 297106Sbriangoetz#define _TOKEN_H_ 307106Sbriangoetz 317106Sbriangoetzvoid yyerror(const char *); 327106Sbriangoetzint yylex(void); 337106Sbriangoetzint yyparse(void); 347106Sbriangoetz 357106Sbriangoetz/* Parsing tokens. */ 367106Sbriangoetz#define PT_BASE 0 377106Sbriangoetz#define PT_DATE 1 387106Sbriangoetz#define PT_HOST 2 397106Sbriangoetz#define PT_PREFIX 3 407106Sbriangoetz#define PT_RELEASE 4 417106Sbriangoetz#define PT_TAG 5 427106Sbriangoetz#define PT_UMASK 6 437106Sbriangoetz#define PT_COMPRESS 7 447106Sbriangoetz#define PT_DELETE 8 457106Sbriangoetz#define PT_USE_REL_SUFFIX 9 467106Sbriangoetz#define PT_LIST 10 477106Sbriangoetz#define PT_NORSYNC 11 487106Sbriangoetz 497106Sbriangoetz#endif /* !_TOKEN_H_ */ 507106Sbriangoetz