1: /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
   2: 
   3: /*
   4:   $Header: b2tar.c,v 1.4 85/08/22 16:56:49 timo Exp $
   5: */
   6: 
   7: #include "b.h"
   8: #include "b1obj.h"
   9: #include "b2par.h"
  10: #include "b2syn.h"
  11: #include "b2nod.h"
  12: #include "b3err.h"
  13: 
  14: Forward parsetree singtarg();
  15: 
  16: Visible parsetree targ(q) txptr q; {
  17:     return collateral(q, singtarg);
  18: }
  19: 
  20: Hidden parsetree singtarg(q) txptr q; {
  21:     parsetree v; value t;
  22:     skipsp(&tx);
  23:     if (nothing(q, "target")) return NilTree;
  24:     if (open_sign()) v= compound(q, targ);
  25:     else if (is_tag(&t)) v= node2(TAG, t);
  26:     else {
  27:         parerr(MESS(2500, "no target where expected"));
  28:         tx= q;
  29:         return NilTree;
  30:     }
  31:     selection(q, &v);
  32:     tar_trimmed_text(q, &v);
  33:     upto(q, "target");
  34:     return v;
  35: }

Defined functions

singtarg defined in line 20; used 2 times
targ defined in line 16; used 11 times
Last modified: 1985-08-27
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 517
Valid CSS Valid XHTML 1.0 Strict