1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-12-22 23:41:10 +02:00
fped/fpd.h
Werner Almesberger 8982d09474 add experimental reload feature
This is a first crude attempt at allowing reloading without exiting
fped. This should be useful when writing a design as text and using
the GUI only to visualize it.

Reload is only enabled (in the File menu) if the file doesn't have
the "MACHINE-GENERATED" header.

Known bugs:
- exits on parse errors
- leaks memory badly
- current frame is reset to root
2012-08-21 02:08:26 -03:00

37 lines
811 B
C

/*
* fpd.c - Things fpd.l and fpd.y export
*
* Written 2009, 2012 by Werner Almesberger
* Copyright 2009, 2012 by Werner Almesberger
*
* 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.
*/
#ifndef FPD_H
#define FPD_H
#include "expr.h"
#include "obj.h"
extern struct expr *expr_result;
extern const char *var_id;
extern struct value *var_value_list;
int dbg_print(const struct expr *expr, const struct frame *frame);
void scan_empty(void);
void scan_file(void);
void scan_expr(const char *s);
void scan_var(const char *s);
void scan_values(const char *s);
int yyparse(void);
#endif /* !FPD_H */