psym_decl.c revision 1.2
1/* $NetBSD: psym_decl.c,v 1.2 2022/04/22 21:21:20 rillig Exp $ */ 2 3/* 4 * Tests for the parser symbol psym_decl, which represents a declaration. 5 * 6 * Since C99, declarations and statements can be mixed in blocks. 7 * 8 * A label can be followed by a statement but not by a declaration. 9 */ 10 11// TODO: prove that psym_decl can only ever occur at the top of the stack. 12// TODO: delete decl_level if the above is proven. 13 14#indent input 15// TODO: add input 16#indent end 17 18#indent run-equals-input 19