Lichen

lib/native/__init__.py

798:4f77605e14e8
2017-04-03 Paul Boddie Added support for left and right shift operators.
     1 #!/usr/bin/env python     2      3 """     4 Native library functions.     5      6 Copyright (C) 2011, 2015, 2016, 2017 Paul Boddie <paul@boddie.org.uk>     7      8 This program is free software; you can redistribute it and/or modify it under     9 the terms of the GNU General Public License as published by the Free Software    10 Foundation; either version 3 of the License, or (at your option) any later    11 version.    12     13 This program is distributed in the hope that it will be useful, but WITHOUT    14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS    15 FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more    16 details.    17     18 You should have received a copy of the GNU General Public License along with    19 this program.  If not, see <http://www.gnu.org/licenses/>.    20 """    21     22 from native.buffer import buffer_str    23     24 from native.identity import is_, is_not    25     26 from native.int import int_add, int_div, int_mod, int_mul, int_neg, int_pow, \    27                        int_sub, int_and, int_not, int_or, int_xor, \    28                        int_lshift, int_rshift, \    29                        int_eq, int_ge, int_gt, int_le, int_lt, int_ne, \    30                        int_str, is_int    31     32 from native.introspection import object_getattr, isinstance, issubclass    33     34 from native.iconv import iconv, iconv_close, iconv_open, iconv_reset    35     36 from native.io import fclose, fflush, fopen, fdopen, close, read, write, fread, fwrite    37     38 from native.limits import get_maxint, get_minint    39     40 from native.list import list_init, list_setsize, list_append, list_concat, \    41                         list_len, list_nonempty, list_element, list_setelement    42     43 from native.locale import getlocale, setlocale    44     45 from native.program import get_using    46     47 from native.str import str_add, str_chr, str_eq, str_gt, str_lt, \    48                        str_ord, str_substr    49     50 from native.system import exit, get_argv, get_path    51     52 from native.tuple import tuple_init    53     54 from native.unicode import unicode_len, unicode_ord, unicode_substr, unicode_unichr    55     56 # vim: tabstop=4 expandtab shiftwidth=4