LoginLogin
Might make SBS readonly: thread

New project- .PRG to .PHP converter

Root / Talk About Programs / [.]

chemicalexCreated:
Hey, guys! Today I decided to test my skills in creating a webpage that converts code in a .PRG file to a .PHP (Or jquery maybe) file executable in browser. It'll be pretty BASIC, but it should be able to convert simple programs. Watch this thread for progress. I'll give out the link soon.

or make an interpreter: http://smilebasicsource.com/404

or make an interpreter: http://smilebasicsource.com/404
Why the link? And the php will allow you to upload the PRG, convert to PHP and download, allowing you to use anywhere. (Note: I'll most likely be using jquery for this now, as it works a bit better than php for functions like wait().)


The 404 page is a simple interpreter

https://gyazo.com/eb42d3cfe08ea1249a2e025ade8a23d7 ...I don't think it likes me very much.

Okay fine. I'll try an interpreter.

does it even work?

Not yet lol
does it even work?

Interpreters are usually easier to make, and I like them because you don't have to wait for it to compile. However, they are slower, so compilers are more popular.

Interpreters are usually easier to make, and I like them because you don't have to wait for it to compile. However, they are slower, so compilers are more popular.
My SB compiler only takes about 5 seconds per 100 lines, so 20 lines/second. That's not a bad ratio.

...What. Why are our names and error message in the heading.

...What. Why are our names and error message in the heading.
...What.

Interpreters are usually easier to make, and I like them because you don't have to wait for it to compile. However, they are slower, so compilers are more popular.
After making several compilers and several interpreters, I find compilers generally easier to make, but it depends on what language you're compiling to. For example, N# to SB is not too difficult, but I imagine N# to CIL or ASM would be much harder.

...What. Why are our names and error message in the heading.
...What.
and it's gone

...What. Why are our names and error message in the heading.
...What.
and it's gone
Like the wind ( ͡° ͜ʖ ͡°)