1. Euphoria in a browser
- Posted by codepilot Sep 28, 2010
- 1533 views
I made euphoria run in a webbrowserStill lots of work to do.
2. Re: Euphoria in a browser
- Posted by euphoric (admin) Sep 28, 2010
- 1476 views
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
3. Re: Euphoria in a browser
- Posted by CoJaBo Sep 28, 2010
- 1402 views
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?
4. Re: Euphoria in a browser
- Posted by codepilot Sep 29, 2010
- 1372 views
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.
5. Re: Euphoria in a browser
- Posted by codepilot Sep 29, 2010
- 1360 views
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.