Home | History | Annotate | Line # | Download | only in indent
psym_if_expr.c revision 1.4
      1  1.4  rillig /* $NetBSD: psym_if_expr.c,v 1.4 2022/04/24 09:04:12 rillig Exp $ */
      2  1.1  rillig 
      3  1.1  rillig /*
      4  1.1  rillig  * Tests for the parser symbol psym_if_expr, representing the parser state
      5  1.1  rillig  * after reading the keyword 'if' and the controlling expression, now waiting
      6  1.1  rillig  * for the statement of the 'then' branch.
      7  1.1  rillig  */
      8  1.1  rillig 
      9  1.4  rillig //indent input
     10  1.3  rillig void function(void) {
     11  1.3  rillig 	if(cond) stmt();
     12  1.3  rillig }
     13  1.4  rillig //indent end
     14  1.1  rillig 
     15  1.4  rillig //indent run
     16  1.3  rillig void
     17  1.3  rillig function(void)
     18  1.3  rillig {
     19  1.3  rillig 	if (cond)
     20  1.3  rillig 		stmt();
     21  1.3  rillig }
     22  1.4  rillig //indent end
     23