MCPcopy Create free account
hub / github.com/geekcomputers/Python / notGreater

Method notGreater

Infix_to_Postfix.py:43–49  ·  view source on GitHub ↗
(self, i)

Source from the content-addressed store, hash-verified

41 # Check if the precedence of operator is strictly
42 # less than top of stack or not
43 def notGreater(self, i):
44 try:
45 a = self.precedence[i]
46 b = self.precedence[self.peek()]
47 return True if a <= b else False
48 except KeyError:
49 return False
50
51 # The main function that converts given infix expression
52 # to postfix expression

Callers 1

infixToPostfixMethod · 0.95

Calls 1

peekMethod · 0.95

Tested by

no test coverage detected