sesl_expr.h 624 Bytes
/*
 * Copyright (C) 1996-1998 by the Board of Trustees
 *    of Leland Stanford Junior University.
 * 
 * This file is part of the SimOS distribution. 
 * See LICENSE file for terms of the license. 
 *
 */


#ifndef _SESL_EXPR_H_
#define _SESL_EXPR_H_

#include "sesl_lib.h"

typedef struct ParseInfo {
   /* scope */
   char *execname;
   char *srcfile;

   /* current string */
   char *str;
   
   /* current symbol state */
   struct SESL_Symbol *sym;
   Reg value;
   char constant;

   /* read from internal simulator memory */
   char internal;
   
} ParseInfo;


int SymParse(char *symexpr, ParseInfo *pip);

#endif