Cope/DPLA

New Commands:

lang[“DPLA”]
functions:say[text]:(
 command_print[text]
)
Event[onLaunch]:(
 If [1 == 1]:(
  say["Hello"]
 )
)

document

CSS beta editor


We now have a gamejolt but due to the forums new policy I can't post the link

@sombrero and @programmer_user hows the editor going?
An we should start talking a little bit more in the forums.

Working on the new interpreter here:
https://repl.it/@programmeruser/dpla-interpreter#src/lexer.js
If you give me your Repl.it username I can invite you to the repl.

My repl.it name is just Daniel4scratch no dash

I want to join

Invited you to the repl.

oooh
I would definitely use this language if it wasn't blocked for me
I would also help but the same reason.

Could you update the document so that

function:say[]:(
)

becomes

function say[] (
)

?

Sorry that will come with the next major update. Plus my brain is currently on SnapForks not Cope right now

I am working on a different interperter too.
https://repl.it/@18001767679/dpla#script.js
It only has the syntaxes in the document(no "scopes" and many other things)
(but native functions are not programmed)(it's like smalltalk (everything is a function))(gosh(why(am(i(using(so(much(parens)))))))


I know you used Jquery but you forgot to load it!

I don't think you can create if statements and other things with that kind of parsing.

Look at allFunctions.The if statement is a native function.You use it like this:
if[foo]:(bar)
else[if[foo]:(bar)]:(baz)
And the if statement will return the value of foo reversed(this is used for elif and else statements)

@danielthebanana4 I finished the DPLA transpiler. Link: https://dpla.programmeruser.repl.co/

the url is blank :confused:

That's a compiler not an interpreter!


@danielthebanana4 Can you help programmer_user make the front end?He didn't make one when he gave the link to you.

sorry that sentence makes no sense, please try again

That's because it prints to the actual js console in devtools (Control + Shift + I or Command + Shift + I). I'll make the transpiled code show up on the page.