Hello. I see that the guile compiler supports ECMAscript, but I can't
seem to get my js programs to compile or run.

There's some info in the user manual where you can say:

```
guile --language=ecmascript -c <expression>
````

The manual says the -c flag evaluates this as a Scheme expression.

If I have a main.js file with the only contents being:

console.log('hello, world')

and say:

```
guild compile main.js
```

This is the output I get:

main.js:1:0: warning: possibly unbound variable `console.log'
main.js:1:20: warning: possibly unbound variable `world'' wrote
`/home/me/.cache/guile/ccache/3.0-LE-8-4.7/home/me/Code/js/main.js.go'

I'm using guile version 3.0.11. I just can't seem to figure out how to
compile/run javascript programs. Any help would be greatly appreciated.
Thanks so much. Please let me know if you need any additional info.

Reply via email to