polterguy / phosphorusfive

A Full Stack RAD Web Application Development Framework
https://gaiasoul.com
GNU General Public License v3.0
178 stars 36 forks source link

No output with pf.console.write-line - with my "hello world" code #1

Closed blueskyleaf closed 9 years ago

blueskyleaf commented 9 years ago

Alright, I have tried pf.lambdas "hello world" version from here: https://www.youtube.com/watch?v=6jRO2ERuaOo

I didn't get any error messages, but I didn't get any output either. I expected to get "howdy world this is cool"

Here is the code I have used in the 1_hello_world file:


_x :howdy :world :this :is :cool for-each:@/../_x/*/?node set:@/+/?value :@/././__dp/#/?value pf.console.write-line


I tried with pf.console.write-line:"hi" and then I got: hi as output.

I have attached the command line results for this. I am working on windows 7 x64, with Mono successfully installed and attached to Environment Variables.

pf lambda feil 2

blueskyleaf commented 9 years ago

I realized my error was using "tab" instead of two spaces in the tree structure of my 1_hello_world file.

This article explains this: http://magixilluminate.com/2014/11/29/hyperlisp-an-alternative-to-json-with-support-for-types/

blueskyleaf commented 9 years ago

So now it works as it should.