micropython

tests/logical_results.py

438:b547786f38c7
2011-07-02 Paul Boddie Moved some code generation methods into a new Assembler class. Separated sequence element storage into a separate method which may form the basis of a native library routine.
     1 #!/usr/bin/env python     2      3 a = 1     4 b = 0     5 e = a and b or not a and not b     6      7 if e is False:     8     f = 0     9 else:    10     f = 1    11     12 e = a and b or a and not b    13     14 if e is False:    15     g = 0    16 else:    17     g = 1    18     19 result_0 = f    20 result_1 = g    21     22 # vim: tabstop=4 expandtab shiftwidth=4