Update lympha.py

parent 7ecdb3fa
......@@ -16,9 +16,7 @@ import os
#regex
import re
#equation parsing
import ast
from math import sqrt
def recursive_parse(node,substitutions):
if hasattr(node.left,"id"):
......@@ -41,6 +39,9 @@ except NameError:
UI = "CLI"
else:
UI = UI
if UI == html:
theturn = 1
addresses = list()
# Variables for " 1. Program call through bash-CLI.".
CLI_filename = ""
......@@ -483,6 +484,7 @@ def stripComments(code):
return re.sub(r'(?m)^ *#.*\n?', '', code)
def lexer():
global UI
global CLIcom_segment
series
global filenames
......@@ -591,6 +593,17 @@ def lexer():
thename = object_list[key].name
if ("%s" % thename) == sides[0].replace(" ", "") :
if UI == "html" :
#Added in the online version!:
if theturn == 1 :
if parts.isdigit() == True or parts == "" or parts == None :
if side1[-1] == "?" :
document <= html.BR()
factorform = document['factorlist']
factorform <= str("%s = "%side1)
factorform <= html.INPUT(type="text", id=side1, Class="factorItems")
factorform <= html.BR()
#For binary values
if str("1B") in str(sides[1]) :
#elif re.compile(".*1B.*").match(sides[1]) :
......@@ -658,7 +671,8 @@ def lexer():
#if 0 == len(operator_chop) :
object_list[key].statement_value = sides[1]
object_list[key].datatype = "valu"
if UI == "html":
theturn = 2
#if CLIcom_segment == 1:
#CLIcom_segment = 2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment