2012-04-26 09:02:48 +03:00
|
|
|
/*
|
|
|
|
* lang.h - Things lang.l and lang.y export
|
|
|
|
*
|
|
|
|
* Copyright 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 LANG_H
|
|
|
|
#define LANG_H
|
|
|
|
|
2012-05-21 01:00:04 +03:00
|
|
|
#include "chr.h"
|
|
|
|
#include "subst.h"
|
|
|
|
|
|
|
|
|
2012-05-22 19:01:39 +03:00
|
|
|
extern const char *dollar; /* "$" */
|
|
|
|
|
2012-05-21 01:00:04 +03:00
|
|
|
extern struct action hierarchy;
|
|
|
|
extern struct subst *substitutions;
|
|
|
|
|
2012-05-01 21:04:24 +03:00
|
|
|
void parse_hierarchy(const char *name);
|
|
|
|
void parse_characteristics(const char *name);
|
|
|
|
void parse_inventory(const char *name);
|
|
|
|
void parse_currencies(const char *name);
|
|
|
|
void parse_providers(const char *name);
|
2012-05-20 17:18:18 +03:00
|
|
|
void parse_substitutions(const char *name);
|
2012-05-23 22:05:24 +03:00
|
|
|
void parse_kicad_bom(const char *name);
|
2012-05-23 23:26:35 +03:00
|
|
|
void parse_symbols(const char *name);
|
2012-04-26 09:02:48 +03:00
|
|
|
|
2012-04-29 04:38:06 +03:00
|
|
|
void yywarnf(const char *fmt, ...);
|
2012-05-20 17:18:18 +03:00
|
|
|
void __attribute__((noreturn)) yyerrorf(const char *fmt, ...);
|
|
|
|
void __attribute__((noreturn)) yyerror(const char *s);
|
2012-04-29 04:12:33 +03:00
|
|
|
|
2012-04-26 09:02:48 +03:00
|
|
|
#endif /* !LANG_H */
|