Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How exactly should UltraLang work? #2

Open
kyleplo opened this issue Feb 10, 2018 · 6 comments
Open

How exactly should UltraLang work? #2

kyleplo opened this issue Feb 10, 2018 · 6 comments

Comments

@kyleplo
Copy link
Collaborator

kyleplo commented Feb 10, 2018

I think it would be simpler if we just make it a JS library that can run on many things:

  • Web Tester (GH Pages)
  • Offline Command Line (electron)
  • Server (node.js package on NPM)
  • Raspberry Pi for hardware (also node.js)

Syntax

u("#hi")// Element with ID of hi
u(".hi")// Elements with class of hi
u("h1")// All <h1> elements
u("<h1></h1>")// H1 element object (like document.createElement)
u("https://example.com")// request to example.com
u("/local.file")// request to local file
u("GPIO:1")// GPIO pin 1 on Raspberry PI
// u() returns an object with more functions, such as:
u("#hi").set("Hello!")// Set innerhtml
u("#hi").style({color: "black"})// Edit CSS
u("a").link("https://example.com")// Set link HREF
u("a").link()// Get link HREF
u("https://example.com").send("GET")// Send request as GET
u("https://example.com").get()// Get response text
u("/local.file").set("Hello")// Edit a local file
u("GPIO:1").on()// Turn pin power on
u("GPIO:1").get()// Get value of an input on the pin
@AmazingMech2418
Copy link
Collaborator

That can be UltraLangScript! UltraLang will also have Bash and ActionScript control.

@kyleplo
Copy link
Collaborator Author

kyleplo commented Feb 10, 2018

Ok. By the way, I think I'll work more on UltraLangScript, but if you need help with UltraLang, I can help

@kyleplo kyleplo closed this as completed Feb 10, 2018
@MasterOfTheTiger
Copy link

I would be very interested in using this.

@AmazingMech2418
Copy link
Collaborator

Thank you @MasterOfTheTiger .

@kyleplo
Copy link
Collaborator Author

kyleplo commented Feb 13, 2018

Maybe also support for mobile?

@radioblahaj
Copy link
Collaborator

That'll be cool/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants