thesecondcoming123 / unlab Goto Github PK
View Code? Open in Web Editor NEWThe unlab golfing language
License: MIT License
The unlab golfing language
License: MIT License
+49 8
tokenizes 49
as 49, 9
.
The expression evaluation order is wrong.
>>> +1 1
Traceback (most recent call last):
File "main.py", line 47, in <module>
cli()
File "main.py", line 31, in cli
shell()
File "main.py", line 43, in shell
print(main(code))
File "main.py", line 16, in main
output = run(code, ctx=ctx)
File "interpreter.py", line 55, in run
return Interprete().main(parse(unpack(structure(tokenize(text)))), ctx)
File "interpreter.py", line 19, in main
main_output = self.interprete(tokens, ctx)
File "interpreter.py", line 47, in interprete
output = func(*list(args))
File "functions.py", line 39, in Add
if typecheck(args=[a, b], types=[Rational, Rational]):
File "helper.py", line 43, in typecheck
raise TypeError(f"Did you mean: [{args}]?") from None
TypeError: Did you mean: [[1, 1]]?
The error can be in the typecheck function, the functions in functions.py, Rational limitations, line 47 of interperator.py, and line 23 of parse.py.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.