usethesource / rascal

The implementation of the Rascal meta-programming language (including interpreter, type checker, parser generator, compiler and JVM based run-time system)
http://www.rascal-mpl.org
Other
400 stars 77 forks source link

Unclear from tutorial how to create a module #1565

Open fniessink opened 3 years ago

fniessink commented 3 years ago

Rascal beginner here, please bear with me.

On https://tutor.rascal-mpl.org/Recipes/Recipes.html#/Recipes/Basic/Hello/Hello.html it says:

"The summit of hello-engineering can be reached by placing all the above in a separate module".

The tutorial unfortunately doesn't say how to do that. I assumed it should be placed in a file. But apparently the demo::basic::Hello module is built in, because import demo::basic::Hello; hello(); works without creating a module myself.

jurgenvinju commented 2 years ago

@fniessink thanks for the report. We missed it completely! so now it's in the right place and we can take care of this.