2010-05-01 05:54:10 +00:00
|
|
|
/* MSPDebug - debugging tool for MSP430 MCUs
|
|
|
|
* Copyright (C) 2009, 2010 Daniel Beer
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef EXPR_H_
|
|
|
|
#define EXPR_H_
|
|
|
|
|
2010-05-13 00:57:21 +00:00
|
|
|
#include <stdint.h>
|
2010-05-01 06:34:43 +00:00
|
|
|
#include "stab.h"
|
2010-05-01 05:54:10 +00:00
|
|
|
|
|
|
|
/* Parse an address expression, storing the result in the integer
|
|
|
|
* pointed to. Returns 0 if parsed successfully, -1 if not.
|
|
|
|
*/
|
2011-03-15 02:20:50 +00:00
|
|
|
int expr_eval(const char *text, address_t *value);
|
2010-05-01 05:54:10 +00:00
|
|
|
|
|
|
|
#endif
|