Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@PrivateGER
Sorry, skipped the pretty visible mention of the "transpiler" somehow. -
Trying to read this it sounds more like a regex parser than anything else. Might that be so?
Looks beautiful though <3 -
@ScriptCoded Basically, this gets used in a lexer to break up source code and process it.
With this and some other code, all fragments of code get an identifier, which lets the actual transpiler process it.
Related Rants
Behold the monstrosity regex my transpiler produces!
/val|var|[1-9]{1,32}|\+|\-|\*|s\/s|>>|=|;|(["'])(?:(?=(\\?))\2.)*?\1|print\(|log\(|sqrt\(|input\(|strToArray\(|httpGet\(|if\(|else|{|}|s==s|s>=s|s<=s|s>s|s<s|s&&s|\|\||!|;|\(|\)|\[|\]| |\w+/gi
random
help
why is regex like this
aaaaaa