hammer/examples
Alex Willmer c6280a98bc Added Python versions of base64 examples
These are transliterations of the existing C files.
They're not particularly Pythonic or performant, but they're a start.

Example of usage

```
$ echo '  YW55IGNhcm5hbCBwbGVhcw==' | PYTHONPATH=../build/opt/src/bindings/python/ python base64.py
inputsize=27
input=  YW55IGNhcm5hbCBwbGVhcw==
((((89L, 87L, 53L, 53L), (73L, 71L, 78L, 104L), (99L, 109L, 53L, 104L), (98L, 67L, 66L, 119L), (98L, 71L, 86L, 104L)), (99L, 'w', '=', '=')),)
$ echo '  YW55IGNhcm5hbCBwbGVhcw==' | PYTHONPATH=../build/opt/src/bindings/python/ python base64_sem1.py
inputsize=27
input=  YW55IGNhcm5hbCBwbGVhcw==
(97L, 110L, 121L, 32L, 99L, 97L, 114L, 110L, 97L, 108L, 32L, 112L, 108L, 101L, 97L, 115L)
$ echo '  YW55IGNhcm5hbCBwbGVhcw==' | PYTHONPATH=../build/opt/src/bindings/python/ python base64_sem2.py
inputsize=27
input=  YW55IGNhcm5hbCBwbGVhcw==
(97L, 110L, 121L, 32L, 99L, 97L, 114L, 110L, 97L, 108L, 32L, 112L, 108L, 101L, 97L, 115L)
```
2015-12-04 10:20:25 +00:00
..
base64.c Ditch longs and long longs in favor of stdint.h types, which has cascading 2013-11-15 00:12:57 -05:00
base64.py Added Python versions of base64 examples 2015-12-04 10:20:25 +00:00
base64_sem1.c Remove vacuous states in base64_sem?.c 2014-12-07 00:16:57 -05:00
base64_sem1.py Added Python versions of base64 examples 2015-12-04 10:20:25 +00:00
base64_sem2.c Remove vacuous states in base64_sem?.c 2014-12-07 00:16:57 -05:00
base64_sem2.py Added Python versions of base64 examples 2015-12-04 10:20:25 +00:00
dns.c Added a void* user_data pointer to HPredicate 2013-11-23 13:01:55 -06:00
dns.h make actions for the remaining RDATA types 2013-01-17 21:58:17 +01:00
dns_common.c Added a void* user_data pointer to HPredicate 2013-11-23 13:01:55 -06:00
dns_common.h Added a void* user_data pointer to HAction 2013-11-23 12:53:11 -06:00
grammar.c Changed generating functions printouts to be copy-paste-able into SageMath. 2015-04-10 10:05:19 +02:00
grammar.h refactored out the grammar handling. handles epsilons better 2015-04-08 17:32:12 +02:00
Makefile fix linking of base64 example 2013-02-17 15:47:18 +01:00
rr.c Added a void* user_data pointer to HPredicate 2013-11-23 13:01:55 -06:00
rr.h All tests pass; lots of stuff is no longer const 2013-05-24 15:07:47 +02:00
SConscript refactored out the grammar handling. handles epsilons better 2015-04-08 17:32:12 +02:00
ties.c Changed generating functions printouts to be copy-paste-able into SageMath. 2015-04-10 10:05:19 +02:00