diff options
author | Juerg Billeter <j@bitron.ch> | 2007-09-17 21:01:20 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2007-09-17 21:01:20 +0000 |
commit | 0c56350693573666c9fa30a9b4035301b29f0717 (patch) | |
tree | c3e2f4294248556f1876ae8edf75a12d5c67cd42 /vala/valacodegenerator.vala | |
parent | 251f0e7a8e16627083d9d2d0227d0ad745ad5763 (diff) | |
download | vala-0c56350693573666c9fa30a9b4035301b29f0717.tar.gz |
rename CodeGenerator to CCodeGenerator, add abstract CodeGenerator and
2007-09-17 Juerg Billeter <j@bitron.ch>
* vala/Makefile.am, vala/valacodebinding.vala,
vala/valacodecontext.vala, vala/valacodegenerator.vala,
vala/valacodenode.vala, gobject/Makefile.am,
gobject/valaccodegenerator.vala, compiler/valacompiler.vala: rename
CodeGenerator to CCodeGenerator, add abstract CodeGenerator and
CodeBinding classes
svn path=/trunk/; revision=617
Diffstat (limited to 'vala/valacodegenerator.vala')
-rw-r--r-- | vala/valacodegenerator.vala | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/vala/valacodegenerator.vala b/vala/valacodegenerator.vala new file mode 100644 index 000000000..745c0b818 --- /dev/null +++ b/vala/valacodegenerator.vala @@ -0,0 +1,35 @@ +/* valacodegenerator.vala + * + * Copyright (C) 2007 Jürg Billeter + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + + * This library 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 + * Lesser General Public License for more details. + + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * Author: + * Jürg Billeter <j@bitron.ch> + */ + +using GLib; + +/** + * Abstract code visitor generating code. + */ +public abstract class Vala.CodeGenerator : CodeVisitor { + /** + * Generate and emit C code for the specified code context. + * + * @param context a code context + */ + public abstract void emit (CodeContext! context); +} |