token.h revision 204556
1178739Sgonzo/*- 2178739Sgonzo * Copyright (c) 2003-2004, Maxime Henrion <mux@FreeBSD.org> 3178739Sgonzo * All rights reserved. 4178739Sgonzo * 5178739Sgonzo * Redistribution and use in source and binary forms, with or without 6178739Sgonzo * modification, are permitted provided that the following conditions 7178739Sgonzo * are met: 8178739Sgonzo * 1. Redistributions of source code must retain the above copyright 9178739Sgonzo * notice, this list of conditions and the following disclaimer. 10178739Sgonzo * 2. Redistributions in binary form must reproduce the above copyright 11178739Sgonzo * notice, this list of conditions and the following disclaimer in the 12178739Sgonzo * documentation and/or other materials provided with the distribution. 13178739Sgonzo * 14178739Sgonzo * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15178739Sgonzo * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16178739Sgonzo * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17178739Sgonzo * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18178739Sgonzo * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19178739Sgonzo * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20178739Sgonzo * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21178739Sgonzo * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22178739Sgonzo * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23178739Sgonzo * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24178739Sgonzo * SUCH DAMAGE. 25178739Sgonzo * 26178739Sgonzo * $FreeBSD: head/usr.bin/csup/token.h 204556 2010-03-02 07:26:07Z lulf $ 27178739Sgonzo */ 28178739Sgonzo#ifndef _TOKEN_H_ 29178739Sgonzo#define _TOKEN_H_ 30178739Sgonzo 31178739Sgonzovoid yyerror(const char *); 32178739Sgonzoint yylex(void); 33178739Sgonzoint yyparse(void); 34178739Sgonzo 35178739Sgonzo/* Parsing tokens. */ 36178739Sgonzo#define PT_BASE 0 37178739Sgonzo#define PT_DATE 1 38178739Sgonzo#define PT_HOST 2 39178739Sgonzo#define PT_PREFIX 3 40178739Sgonzo#define PT_RELEASE 4 41178739Sgonzo#define PT_TAG 5 42178739Sgonzo#define PT_UMASK 6 43178739Sgonzo#define PT_COMPRESS 7 44178739Sgonzo#define PT_DELETE 8 45178739Sgonzo#define PT_USE_REL_SUFFIX 9 46178739Sgonzo#define PT_LIST 10 47178739Sgonzo#define PT_NORSYNC 11 48178739Sgonzo 49178739Sgonzo#endif /* !_TOKEN_H_ */ 50178739Sgonzo