morganey-lang / Morganey

Lambda Calculus based, interpreted programming language that recognizes Church encoded structures.
43 stars 4 forks source link

Implement the CGI sample #294

Open rexim opened 7 years ago

rexim commented 7 years ago

Split from https://github.com/morganey-lang/Morganey/issues/281#issuecomment-258441946

Original description by @ForNeVeR:

Write a program that reads an optional name parameter from stdin and prints a message:

<h1>Hello {name}</h1>
Enter next name: <form><input name="name" /><button>Hi</button></form>

Add an instruction to connect that to CGI. Why the hell not! I recommend to put additional parser in front of program that will parse and strip out HTTP headers and stuff.

https://github.com/morganey-lang/Morganey/issues/281#issuecomment-256375872

rexim commented 7 years ago

To implement that we need some kind of raw mode that outputs Church Lists of Church Numbers explicitly without any Smart Detection™. And I'm still not sure how it will fit the entire design of the language. Need to think about it a bit more.