psym_decl.c revision 1.1
11.1Srillig/* $NetBSD: psym_decl.c,v 1.1 2021/11/18 21:19:19 rillig Exp $ */
21.1Srillig/* $FreeBSD$ */
31.1Srillig
41.1Srillig/*
51.1Srillig * Tests for the parser symbol psym_decl, which represents a declaration.
61.1Srillig *
71.1Srillig * Since C99, declarations and statements can be mixed in blocks.
81.1Srillig *
91.1Srillig * A label can be followed by a statement but not by a declaration.
101.1Srillig */
111.1Srillig
121.1Srillig// TODO: prove that psym_decl can only ever occur at the top of the stack.
131.1Srillig// TODO: delete decl_level if the above is proven.
141.1Srillig
151.1Srillig#indent input
161.1Srillig// TODO: add input
171.1Srillig#indent end
181.1Srillig
191.1Srillig#indent run-equals-input
20