Skip to content

Commit eca3397

Browse files
ianyongmartin-henz
andauthored
Update documentation of __PROGRAM__ name (#1379)
Co-authored-by: Martin Henz <henz@comp.nus.edu.sg>
1 parent 2435b14 commit eca3397

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/specs/source_interpreter.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ \section*{Interpreter Support}
1717
The tree is represented by the tagged lists on the right; the angle brackets denote recursive application
1818
of the transformation rules. Implementations are allowed to support more of JavaScript than listed.
1919
\end{itemize}
20-
In addition, the Source Academy frontend predeclares the name \lstinline{__PROGRAM__} in all Source languages
21-
to refer to the string representation of the program in the editor that is being run using ``Run''.
20+
In addition, the Source Academy frontend predeclares the name \lstinline{__PROGRAM__} in all Source languages to
21+
refer to the string representation of the entrypoint file of the program in the editor that is being run using ``Run''.
22+
The entrypoint file is the file containing the code that acts as the entrypoint of the program being run.
2223
If \lstinline{__PROGRAM__} is used in the REPL, it refers to the string representation of the editor content
2324
at the time when ``Run'' was last pressed.
2425

0 commit comments

Comments
 (0)