1. Euphoria in a browser

I made euphoria run in a webbrowserStill lots of work to do.

Screenshot.

new topic     » topic index » view message » categorize

2. Re: Euphoria in a browser

Very cool! I've always wondered why this hadn't been done yet. :)

Keep us up-to-date!

(I guess if this runs in Safari, it could run on the iPhone.) :D

new topic     » goto parent     » topic index » view message » categorize

3. Re: Euphoria in a browser

What is this screenshot supposed to be demonstrating?

Is Eu actually ported as a browser plugin, and if so how did you get it to run under 5 different plugin APIs and (perhaps more interestingly) support DOS pixel graphics in a Windows environment?

Or is it simply one of the Eu graphics demos ported to Javascript/Flash/etc?

new topic     » goto parent     » topic index » view message » categorize

4. Re: Euphoria in a browser

This is C:\EUPHORIA\DEMO\DOS32\sb.ex.
I made my own version of OMETA see VPRI.
Which makes parser parsers.
Then I made a Euphoria parser.
Then I parsed sb.ex into an abstract syntax tree.
Then I saved it in JSON format.
Then I flattened the tree in javascript.
Then I ran the code using in javascript through an interpreter I made in javascript.
The dos graphics are due to the HTML5 Canvas Element.
So IE 9+, Opera, Firefox, Chome, Safari all work You can have a look, Download Link.
testpage.html is thing to see for demo.
testpage.js has flattener, and interpreter.
omide_text.exw make emem_part.e.json and emem_part.e.js.
emem_part.e.json and emem_part.e.js are the parsed syntax tree.
emtest.em is the Euphoria parser grammar.
emem_part.e is the Emeta Parser grammar.

This is still very much a work in progress, and not well commented.

new topic     » goto parent     » topic index » view message » categorize

5. Re: Euphoria in a browser

Now that I have the Javascript-Euphoria interpreter working, I plan to get the parser-parser working in javascript, then Euphoria files can directly be ran in jvavascript in a browser.
Sadly, the dos graphics in Euphoria work so wonderfully with the Canvas Tag, but I can't think of any EASY way to make windows gui programs( ie win32lib) work in a browser.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu