From 0463007b16e8ea92c9c267c462bdc3129ec5ce6b Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Thu, 4 May 2023 20:34:01 +0200 Subject: update --- yaegi-internals/index.html | 12 ++++++------ yaegi-internals/readme.md | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'yaegi-internals') diff --git a/yaegi-internals/index.html b/yaegi-internals/index.html index d9d6983..98df727 100644 --- a/yaegi-internals/index.html +++ b/yaegi-internals/index.html @@ -363,12 +363,12 @@ runtime.

figure 6: frame organization -

The memory management performed by the interpreter consists to create -a global frame at a new session (the top of the stack), populated with -all global values (constants, types, variables and functions). At each -new interpreted function call, a new frame is pushed on the stack, -containing the values for all the return value, input parameters and -local variables of the function.

+

The memory management performed by the interpreter consists of +creating a global frame at a new session (the top of the stack), +populated with all global values (constants, types, variables and +functions). At each new interpreted function call, a new frame is pushed +on the stack, containing the values for all the return value, input +parameters and local variables of the function.

Conclusion

We have described the general architecture of a Go interpreter, reusing the existing Go scanner and parser. We have focused on the diff --git a/yaegi-internals/readme.md b/yaegi-internals/readme.md index 9f0a683..0d3a42d 100644 --- a/yaegi-internals/readme.md +++ b/yaegi-internals/readme.md @@ -340,7 +340,7 @@ provided by the Go runtime. ![figure 6: frame organization](frame1.drawio.svg) -The memory management performed by the interpreter consists to create a +The memory management performed by the interpreter consists of creating a global frame at a new session (the top of the stack), populated with all global values (constants, types, variables and functions). At each new interpreted function call, a new frame is pushed on the stack, -- cgit v1.2.3