Re: Euphoria in a browser

new topic     » goto parent     » topic index » view thread      » older message » newer message

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 thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu