]> git.draconx.ca Git - gob-dx.git/blob - README
3c3d0027188a022343831ef7ee54b04ddbf092c8
[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 doc/USER_GUIDE for some documenation on how to use
31            GOB
32         2) if you can't find what you need, read src/test.gob and
33            src/lexer.l and src/parse.y (in other words: RTFS)
34
35 TODO:
36         - clean up code
37         - make it behave nice
38         - add warnings all over the place
39         - add autoconf/automake setup
40         - get a life
41
42 George <jirka@5z.com>