mirror of
git://projects.qi-hardware.com/fped.git
synced 2024-11-18 06:59:43 +02:00
8982d09474
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
37 lines
811 B
C
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 */
|