macrodelete_parser
[mala.git] / engine / actiondesc.h
blob7e3ce5a333a51df34e2fbf947b8c34fc7e4505f3
1 /*
2 actiondesc.h - stack for all actions on one word
4 Copyright (C) 2004, 2005, Christian Thaeter <chth@gmx.net>
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License version 2 as
8 published by the Free Software Foundation.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, contact me.
20 #ifndef MALA_ACTIONDESC_H
21 #define MALA_ACTIONDESC_H
23 #include "mala_types.h"
24 //#include "strings.h"
26 struct mala_actiondesc_struct
28 MalaString name;
29 mala_actionstack actions;
33 MalaActionDesc
34 mala_actiondesc_new (MalaString name);
36 void
37 mala_actiondesc_free (MalaActionDesc self);
39 MalaActionDesc
40 mala_actiondesc_ensure (MalaString str);
42 void
43 mala_actiondesc_push_action (MalaActionDesc self, MalaAction action);
45 int
46 mala_actiondesc_pop (MalaActionDesc self);
48 MalaAction
49 mala_actiondesc_top (MalaActionDesc self);
52 #endif /* MALA_ACTIONDESC_H */
55 // Local Variables:
56 // mode: C
57 // c-file-style: "gnu"
58 // End:
59 // arch-tag: bee89bcc-2e05-4d0a-bee4-605b79225a32
60 // end_of_file