Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Declarative

Forth-like, declarative external DSL, run in PHP and JavaScript.

Agnostic about client/server. Meaning, it runs the same code on both.

Example code:

when click button #search then                  // Bind event to browser button
GET dekra order by URI param ?search            // Backend API call
if length > 1 then show order list              // Show result from API call as a list in browser using Ajax
if length = 1 then populate order as receipt
if length = 0 then show error "Found no order"

Notes

"Test string to stack"
if length: > 1 then "hello" echo: endif

14:17 < vdupras> but hey, wait, isn't your proposal just syntactic sugar? If you make "if" into a noop, give "then" the meaning of traditional "if" and give "endif" the meaning of traditional then, you end up with pretty much what you want, without having to resort to stream peeking, right?

About

Declarative and Forth-like external DSL agnostic of client/server split

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages