]> git.draconx.ca Git - gob-dx.git/blob - README
Release 0.0.2
[gob-dx.git] / README
1 GTK+ Object Builder (GOB)
2
3 Very early prototype. An extremely poor attempt at making a lex or yacc like
4 preprocessor for making GTK+ objects, while keeping he language in a sort of
5 java like style, and keeping the implementation extremely simple and without
6 having to parse any real C code.
7
8 Reasons:
9         - C is a perfect (well mostly) language, no need for another language
10         - Writing a fully featured GTK+ object is a hassle
11         - Need for a generator that doesn't require changes to generated code
12         - I like how Java writes method code directly into the class
13           definition.
14
15 To build:
16         run make
17
18 To install:
19         edit the makefile to edit the destination directory and run
20         "make install" as root (or just put src/gob somewhere nice)
21
22 To use:
23         run gob with the .gob file on the command line
24
25 What's generated:
26         two (.c and .h) files named by the object name with words
27         separated by a hyphen (not neccessairly the .gob file prefix)
28
29 How to write .gob files?
30         1) read "man gob" for some documenation on how to use GOB
31         2) if you can't find what you need, read src/test.gob and
32            src/lexer.l and src/parse.y (in other words: RTFS)
33
34 TODO:
35         - clean up code
36         - make it behave nice
37         - add warnings all over the place
38         - add autoconf/automake setup
39         - get a life
40
41 George <jirka@5z.com>