lex_(inbuf
, inlnt
, outbuf
, op
, vbflag
, lprscon
)
int outbuf
[40], *inlnt
, *op
, *vbflag
;
int *lprscon
; /* added */
* lex - lexical analyzer, converted from fortran
* input: one line of ascii characters
* output: tokenized input, packed in radix-50 format
static int num601
= {601};
/* printf("lex: inbuf=%s, inlnt=%d\n", inbuf, *inlnt); */
while ((*lprscon
)++ <= *inlnt
) {
/* printf("lex: chr=%c\n", j); */
if ((j
== '.') || (j
== ','))
if (cp
) /* if (cp != 0) */
continue; /* first token */
else if ((j
>= 'A') && (j
<= 'Z'))
else if (((j
>= '1') && (j
<= '9')) || (j
== '-'))
* ignore remainder of any token > 6 chars
* pack three chars per word in radix-50 format
/* printf("*op=%d, cp=%d, k=%d\n", *op, cp, k); */
if (!cp
) /* if (cp == 0) */
return(FALSE
); /* no valid tokens */