1028N/A/*
1028N/A * CDDL HEADER START
1028N/A *
1028N/A * The contents of this file are subject to the terms of the
1028N/A * Common Development and Distribution License (the "License").
1028N/A * You may not use this file except in compliance with the License.
1028N/A *
1028N/A * See LICENSE.txt included in this distribution for the specific
1028N/A * language governing permissions and limitations under the License.
1028N/A *
1028N/A * When distributing Covered Code, include this CDDL HEADER in each
1028N/A * file and include the License file at LICENSE.txt.
1028N/A * If applicable, add the following below this CDDL HEADER, with the
1028N/A * fields enclosed by brackets "[]" replaced with your own identifying
1028N/A * information: Portions Copyright [yyyy] [name of copyright owner]
1028N/A *
1028N/A * CDDL HEADER END
1028N/A */
1028N/A
1028N/A/*
1028N/A * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
1028N/A * Use is subject to license terms.
1028N/A */
1028N/Apackage org.opensolaris.opengrok.analysis.python;
1028N/A
1028N/Aimport java.util.HashSet;
1028N/Aimport java.util.Set;
1028N/A
1028N/A/**
1028N/A * Holds static hash set containing the Python keywords
1028N/A */
1028N/Apublic class Consts{
1028N/A public static final Set<String> kwd = new HashSet<String>() ;
1028N/A static {
1028N/A kwd.add( "and" );
1028N/A kwd.add( "as" ); //2.5 , 2.6
1028N/A kwd.add( "assert" );
1028N/A kwd.add( "break" );
1028N/A kwd.add( "class" );
1028N/A kwd.add( "continue" );
1028N/A kwd.add( "def" );
1028N/A kwd.add( "del" );
1028N/A kwd.add( "elif" );
1028N/A kwd.add( "else" );
1028N/A kwd.add( "except" );
1028N/A kwd.add( "exec" );
1028N/A kwd.add( "finally" );
1028N/A kwd.add( "for" );
1028N/A kwd.add( "from" );
1028N/A kwd.add( "global" );
1028N/A kwd.add( "if" );
1028N/A kwd.add( "import" );
1028N/A kwd.add( "in" );
1028N/A kwd.add( "is" );
1028N/A kwd.add( "lambda" );
1028N/A kwd.add( "not" );
1028N/A kwd.add( "or" );
1028N/A kwd.add( "pass" );
1028N/A kwd.add( "print" );
1028N/A kwd.add( "raise" );
1190N/A kwd.add( "return" );
1190N/A kwd.add( "try" );
1028N/A kwd.add( "while" );
1028N/A kwd.add( "with" ); //2.5 , 2.6
1190N/A kwd.add( "yield" );
1028N/A kwd.add( "None" ); //2.4
1028N/A }
1028N/A}