File: e_ccsrc.cc

package info (click to toggle)
acs 021-2.3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 2,196 kB
  • ctags: 2,629
  • sloc: cpp: 15,013; makefile: 166
file content (35 lines) | stat: -rw-r--r-- 1,117 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*$Id: e_ccsrc.cc,v 11.22 96/02/18 11:43:21 al Exp $ -*- C++ -*-
 * current controlled source base
 */
#include "ap.h"
#include "e_ccsrc.h"
#include "io.h"
#include "l_compar.h"
/*--------------------------------------------------------------------------*/
//	void	CCSRC_BASE::parse(CS& cmd);
//	void	CCSRC_BASE::print(int,int)const;
/*--------------------------------------------------------------------------*/
void CCSRC_BASE::parse(CS& cmd)
{
  parselabel(cmd);
  parsenodes(cmd,PRINTNODES);
  cmd.ctostr(inputlabel, LABELEN, TOKENTERM);
  inputlabel[0] = to_upper(inputlabel[0]);
  parseexpr(cmd);
}
/*--------------------------------------------------------------------------*/
void CCSRC_BASE::print(int where, int /*detail*/)const
{
  printlabel(where);
  printnodes(where,PRINTNODES);
  if (input){
    mputc(' ', where);
    input->printlabel(where);
  }else{
    mprintf(where, " %s  ", inputlabel);
  }
  printexpr(where);
  mputc('\n', where);
}
/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/