001/*
002 * Anarres C Preprocessor
003 * Copyright (c) 2007-2015, Shevek
004 *
005 * Licensed under the Apache License, Version 2.0 (the "License");
006 * you may not use this file except in compliance with the License.
007 * You may obtain a copy of the License at
008 *
009 *     http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
014 * or implied.  See the License for the specific language governing
015 * permissions and limitations under the License.
016 */
017package org.anarres.cpp;
018
019/**
020 * Features of the Preprocessor, which may be enabled or disabled.
021 */
022public enum Feature {
023
024    /** Supports ANSI digraphs. */
025    DIGRAPHS,
026    /** Supports ANSI trigraphs. */
027    TRIGRAPHS,
028    /** Outputs linemarker tokens. */
029    LINEMARKERS,
030    /** Reports tokens of type INVALID as errors. */
031    CSYNTAX,
032    /** Preserves comments in the lexed output. Like cpp -C */
033    KEEPCOMMENTS,
034    /** Preserves comments in the lexed output, even when inactive. */
035    KEEPALLCOMMENTS,
036    DEBUG,
037    /** Supports lexing of objective-C. */
038    OBJCSYNTAX,
039    INCLUDENEXT,
040    /** Random extensions. */
041    PRAGMA_ONCE
042}