# Path: libraries/polishNotation2.py
# def remove_values_from_list(the_list, val):
# def stringToSyntaxTree(theString):
# def splitWithArrows(theString):
# def splitParameterString(theString):
# def allOccurrences(theList, thingToFind):
# def getThingToCheckAgainstRegex(theArray):
# def getInfoFromArray(theInputArray, reallyNewInfoArray):
# def is_number(s):
# def isSeparatedBy(theArray, theString):
# def tokenizeString(theString):
# def tokenizeList(theList):
# def insertIntoList(theList, index, obj):
# def surroundCurlyBraces(theList):
# def surroundBrackets(theList):
# def surroundBracesAndBrackets(theList):
# def evaluateMacro(theOldArray, reallyNewInfoArray):
# def getInfoFromString(theRegexString, theOutputString, isFinal, reallyNewInfoArray):
# def splitStatement(theRegex, stringToSplit):
# def syntaxInLanguage(syntaxRules, theLanguage):
# def makeReallyNewInfoArray(theInfoArray, theLanguage):
# def getStringOutput(toTest, reallyNewInfoArray):
# def testMacro(toTest, reallyNewInfoArray):
# 
# Path: libraries/convertBases.py
# def convertBases(innitvar, basevar, convertvar):
# 	# Create a symbol-to-value table.
# 	SY2VA = {'0': 0,
# 			 '1': 1,
# 			 '2': 2,
# 			 '3': 3,
# 			 '4': 4,
# 			 '5': 5,
# 			 '6': 6,
# 			 '7': 7,
# 			 '8': 8,
# 			 '9': 9,
# 			 'A': 10,
# 			 'B': 11,
# 			 'C': 12,
# 			 'D': 13,
# 			 'E': 14,
# 			 'F': 15,
# 			 'G': 16,
# 			 'H': 17,
# 			 'I': 18,
# 			 'J': 19,
# 			 'K': 20,
# 			 'L': 21,
# 			 'M': 22,
# 			 'N': 23,
# 			 'O': 24,
# 			 'P': 25,
# 			 'Q': 26,
# 			 'R': 27,
# 			 'S': 28,
# 			 'T': 29,
# 			 'U': 30,
# 			 'V': 31,
# 			 'W': 32,
# 			 'X': 33,
# 			 'Y': 34,
# 			 'Z': 35,
# 			 'a': 36,
# 			 'b': 37,
# 			 'c': 38,
# 			 'd': 39,
# 			 'e': 40,
# 			 'f': 41,
# 			 'g': 42,
# 			 'h': 43,
# 			 'i': 44,
# 			 'j': 45,
# 			 'k': 46,
# 			 'l': 47,
# 			 'm': 48,
# 			 'n': 49,
# 			 'o': 50,
# 			 'p': 51,
# 			 'q': 52,
# 			 'r': 53,
# 			 's': 54,
# 			 't': 55,
# 			 'u': 56,
# 			 'v': 57,
# 			 'w': 58,
# 			 'x': 59,
# 			 'y': 60,
# 			 'z': 61,
# 			 '!': 62,
# 			 '"': 63,
# 			 '#': 64,
# 			 '$': 65,
# 			 '%': 66,
# 			 '&': 67,
# 			 "'": 68,
# 			 '(': 69,
# 			 ')': 70,
# 			 '*': 71,
# 			 '+': 72,
# 			 ',': 73,
# 			 '-': 74,
# 			 '.': 75,
# 			 '/': 76,
# 			 ':': 77,
# 			 ';': 78,
# 			 '<': 79,
# 			 '=': 80,
# 			 '>': 81,
# 			 '?': 82,
# 			 '@': 83,
# 			 '[': 84,
# 			 '\\': 85,
# 			 ']': 86,
# 			 '^': 87,
# 			 '_': 88,
# 			 '`': 89,
# 			 '{': 90,
# 			 '|': 91,
# 			 '}': 92,
# 			 '~': 93}
# 
# 	# Take a string and base to convert to.
# 	# Allocate space to store your number.
# 	# For each character in your string:
# 	#     Ensure character is in your table.
# 	#     Find the value of your character.
# 	#     Ensure value is within your base.
# 	#     Self-multiply your number with the base.
# 	#     Self-add your number with the digit's value.
# 	# Return the number.
# 
# 	integer = 0
# 	for character in innitvar:
# 		assert character in SY2VA, 'Found unknown character!'
# 		value = SY2VA[character]
# 		assert value < basevar, 'Found digit outside base!'
# 		integer *= basevar
# 		integer += value
# 
# 	# Create a value-to-symbol table.
# 	VA2SY = dict(map(reversed, SY2VA.items()))
# 
# 	# Take a integer and base to convert to.
# 	# Create an array to store the digits in.
# 	# While the integer is not zero:
# 	#     Divide the integer by the base to:
# 	#         (1) Find the "last" digit in your number (value).
# 	#         (2) Store remaining number not "chopped" (integer).
# 	#     Save the digit in your storage array.
# 	# Return your joined digits after putting them in the right order.
# 
# 	array = []
# 	while integer:
# 		integer, value = divmod(integer, convertvar)
# 		array.append(VA2SY[value])
# 	answer = ''.join(reversed(array))
# 
# 	# Display the results of the calculations.
# 	return answer
# 
# Path: libraries/syntaxRules.py
# def getMatchingRegex(theString):
# def fixSyntax(theString):
# def makeSyntaxArrayFromString(theString):
# def makeSyntaxRules(syntaxRules):
# def testMacro(syntaxRules, theInput):


import numpy
import re
import math
from libraries import polishNotation2
from subprocess import call
from libraries import convertBases
from libraries import syntaxRules
'''
This file is no longer being used.
Use main.py instead.
'''















from __future__ import division







# Path: libraries/polishNotation2.py
# def remove_values_from_list(the_list, val):
# def stringToSyntaxTree(theString):
# def splitWithArrows(theString):
# def splitParameterString(theString):
# def allOccurrences(theList, thingToFind):
# def getThingToCheckAgainstRegex(theArray):
# def getInfoFromArray(theInputArray, reallyNewInfoArray):
# def is_number(s):
# def isSeparatedBy(theArray, theString):
# def tokenizeString(theString):
# def tokenizeList(theList):
# def insertIntoList(theList, index, obj):
# def surroundCurlyBraces(theList):
# def surroundBrackets(theList):
# def surroundBracesAndBrackets(theList):
# def evaluateMacro(theOldArray, reallyNewInfoArray):
# def getInfoFromString(theRegexString, theOutputString, isFinal, reallyNewInfoArray):
# def splitStatement(theRegex, stringToSplit):
# def syntaxInLanguage(syntaxRules, theLanguage):
# def makeReallyNewInfoArray(theInfoArray, theLanguage):
# def getStringOutput(toTest, reallyNewInfoArray):
# def testMacro(toTest, reallyNewInfoArray):
# 
# Path: libraries/convertBases.py
# def convertBases(innitvar, basevar, convertvar):
# 	# Create a symbol-to-value table.
# 	SY2VA = {'0': 0,
# 			 '1': 1,
# 			 '2': 2,
# 			 '3': 3,
# 			 '4': 4,
# 			 '5': 5,
# 			 '6': 6,
# 			 '7': 7,
# 			 '8': 8,
# 			 '9': 9,
# 			 'A': 10,
# 			 'B': 11,
# 			 'C': 12,
# 			 'D': 13,
# 			 'E': 14,
# 			 'F': 15,
# 			 'G': 16,
# 			 'H': 17,
# 			 'I': 18,
# 			 'J': 19,
# 			 'K': 20,
# 			 'L': 21,
# 			 'M': 22,
# 			 'N': 23,
# 			 'O': 24,
# 			 'P': 25,
# 			 'Q': 26,
# 			 'R': 27,
# 			 'S': 28,
# 			 'T': 29,
# 			 'U': 30,
# 			 'V': 31,
# 			 'W': 32,
# 			 'X': 33,
# 			 'Y': 34,
# 			 'Z': 35,
# 			 'a': 36,
# 			 'b': 37,
# 			 'c': 38,
# 			 'd': 39,
# 			 'e': 40,
# 			 'f': 41,
# 			 'g': 42,
# 			 'h': 43,
# 			 'i': 44,
# 			 'j': 45,
# 			 'k': 46,
# 			 'l': 47,
# 			 'm': 48,
# 			 'n': 49,
# 			 'o': 50,
# 			 'p': 51,
# 			 'q': 52,
# 			 'r': 53,
# 			 's': 54,
# 			 't': 55,
# 			 'u': 56,
# 			 'v': 57,
# 			 'w': 58,
# 			 'x': 59,
# 			 'y': 60,
# 			 'z': 61,
# 			 '!': 62,
# 			 '"': 63,
# 			 '#': 64,
# 			 '$': 65,
# 			 '%': 66,
# 			 '&': 67,
# 			 "'": 68,
# 			 '(': 69,
# 			 ')': 70,
# 			 '*': 71,
# 			 '+': 72,
# 			 ',': 73,
# 			 '-': 74,
# 			 '.': 75,
# 			 '/': 76,
# 			 ':': 77,
# 			 ';': 78,
# 			 '<': 79,
# 			 '=': 80,
# 			 '>': 81,
# 			 '?': 82,
# 			 '@': 83,
# 			 '[': 84,
# 			 '\\': 85,
# 			 ']': 86,
# 			 '^': 87,
# 			 '_': 88,
# 			 '`': 89,
# 			 '{': 90,
# 			 '|': 91,
# 			 '}': 92,
# 			 '~': 93}
# 
# 	# Take a string and base to convert to.
# 	# Allocate space to store your number.
# 	# For each character in your string:
# 	#     Ensure character is in your table.
# 	#     Find the value of your character.
# 	#     Ensure value is within your base.
# 	#     Self-multiply your number with the base.
# 	#     Self-add your number with the digit's value.
# 	# Return the number.
# 
# 	integer = 0
# 	for character in innitvar:
# 		assert character in SY2VA, 'Found unknown character!'
# 		value = SY2VA[character]
# 		assert value < basevar, 'Found digit outside base!'
# 		integer *= basevar
# 		integer += value
# 
# 	# Create a value-to-symbol table.
# 	VA2SY = dict(map(reversed, SY2VA.items()))
# 
# 	# Take a integer and base to convert to.
# 	# Create an array to store the digits in.
# 	# While the integer is not zero:
# 	#     Divide the integer by the base to:
# 	#         (1) Find the "last" digit in your number (value).
# 	#         (2) Store remaining number not "chopped" (integer).
# 	#     Save the digit in your storage array.
# 	# Return your joined digits after putting them in the right order.
# 
# 	array = []
# 	while integer:
# 		integer, value = divmod(integer, convertvar)
# 		array.append(VA2SY[value])
# 	answer = ''.join(reversed(array))
# 
# 	# Display the results of the calculations.
# 	return answer
# 
# Path: libraries/syntaxRules.py
# def getMatchingRegex(theString):
# def fixSyntax(theString):
# def makeSyntaxArrayFromString(theString):
# def makeSyntaxRules(syntaxRules):
# def testMacro(syntaxRules, theInput):


# Path: MacroDemo.py
import numpy
import re
import math
from libraries import polishNotation2
from subprocess import call
from libraries import convertBases
from libraries import syntaxRules

'''
This file is no longer being used.
Use main.py instead.
'''















from __future__ import division







convertBases = convertBases.convertBases