#C + Python
1 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
# our math expression
our_string = str(input())
our_string_utf = our_string.encode('utf-8')
print('here0')
# parsing math expression to infix
parser.parse.arguments = [ctypes.c_char_p]
print('here1')
parser.parse(our_string_utf)
change_file_name("infix")
# creating string with postfix
postfix = infix_to_postfix()
postfix_utf = postfix.encode('utf-8')
parser.parse.arguments = [ctypes.c_char_p]
python polish_notation.py
PARSER_INFIX WAS SUCCESSFULLY LOADED
2 + 2
here0
here1
make: *** [Makefile:8: run] Error -1073740791
on this line parser.parse(our_string_utf) I got this Error -1073740791 (as I understood memory error)