blob: cc2dd60556ea39b0693c5b7d4d428b8cf14b9ba3 [file] [log] [blame]
-----------------------------------------------------------------------------------
-- Copyright (c) 2006, 2009 IBM Corporation and others.
-- This program and the accompanying materials
-- are made available under the terms of the Eclipse Public License 2.0
-- which accompanies this distribution, and is available at
-- https://www.eclipse.org/legal/epl-2.0/
--
-- SPDX-License-Identifier: EPL-2.0
--
-- Contributors:
-- IBM Corporation - initial API and implementation
-----------------------------------------------------------------------------------
%options la=2
%options package=org.eclipse.cdt.internal.core.dom.lrparser.c99
%options template=LRSecondaryParserTemplate.g
$Import
C99Grammar.g
$DropRules
cast_expression
::= '(' type_id ')' cast_expression
$End
$Define
$ast_class /. IASTExpression ./
$End
$Start
no_cast_start
$End
$Rules
no_cast_start
::= expression
| ERROR_TOKEN
/. $Build consumeEmpty(); $EndBuild ./
$End