From bcf0854b5369c375b4b6e35c08a92c777b819d07 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 5 Feb 1995 16:52:24 +0000 Subject: [PATCH] added README --- Tools/bgen/README | 79 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 Tools/bgen/README diff --git a/Tools/bgen/README b/Tools/bgen/README new file mode 100644 index 00000000000..4c1e9f4ec80 --- /dev/null +++ b/Tools/bgen/README @@ -0,0 +1,79 @@ +BGEN -- An Experiment: Automatic Generation of Extension Modules +================================================================ + +This directory contains BGEN -- a package that helps in generating +complete source code for Python extension module. It currently also +contains a set of examples that were generated with BGEN. These +examples are mostly interfaces to a number of important managers in +the Macintosh toolbox. + + +Overview of Subdirectories +-------------------------- + +Main subdirectories: + +bgen the code generator package + +Example subdirectories: + +ae AppleEvents +ctl Controls +dlg Dialogs +evt Events +menu Menus +qd QuickDraw +res Resources +snd Sound +win Windows + + +Contents of Subdirectories +-------------------------- + +The contents of each example subdirectory is similar ( is +for instance AppleEvents, while is ae): + +scan.py Scan the .h header, generating gen.py +gen.py Output of scan.py, input for support.py +edit.py Manually written complement of gen.py, sometimes +support.py Generate module.c from gen.py and edit.py +module.c The interface module, ready to be compiled +.py Symbolic constants extracted from + + +Tests and Examples +------------------ + +Other files in these subdirectories are usually examples using the +extension. If there's a file t.py, it usually is a really +boring test program. + +Some test programs contain pathnames that should be edited before +trying them. + +Some of the less boring tests and examples: + +At the top level: + +test.py Application mainloop, uses most Mac extensions + +In ae: + +aetools.py Conversions between AE and Python data type +echo.py Dummy AE server, echoes all data back +tell.py Primitive AE client +aete.py Decode 'aete' and 'aeut' resources (incomplete) + +In res: + +listres.py List *all* resources in current and in all res files +copyres.py Copy a resource file +mkerrstrres.py Read "errors.txt" and create a set of "Estr" resources + +In snd: + +playaiff.py Play an AIFF file +morse.py Turn text into Morse code +audiodev.py The standard audiodev.py extended with Mac support +Audio_mac.py The Mac support for audiodev.py