static char sccsid
[] = "@(#)parser1.c 3.18 %G%";
* Copyright (c) 1983 Regents of the University of California,
* All rights reserved. Redistribution permitted subject to
* the terms of the Berkeley Software License Agreement.
if (token
== T_EOF
|| p_abort())
while (token
!= T_EOL
&& token
!= T_EOF
) {
for (; p_statement(flag
) >= 0; p_clearerr())
return p_expression(flag
);
if (p_expr(&t
, flag
) < 0) {
true = !true && t
.v_num
!= 0;
p_error("if: Numeric value required.");
p_statementlist(flag
&& true);
p_statementlist(flag
&& !true);
int p_function(), p_assign();
if (p_expr(&t
, flag
) < 0)
if (token
!= T_ASSIGN
&& p_convstr(&t
) < 0)
cmd
= t
.v_type
== V_STR
? t
.v_str
: 0;
if ((*(token
== T_ASSIGN
? p_assign
: p_function
))(cmd
, &t
, flag
) < 0) {
else if (token
!= T_EOF
) {
register struct value
*v
;
if ((v
->v_str
= str_itoa(v
->v_num
)) == 0) {
cx
.x_synerred
= cx
.x_erred
= 1;
cx
.x_erred
= cx
.x_abort
= 1;