-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
139 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
module : finclude.c | ||
version : 1.12 | ||
date : 05/02/24 | ||
*/ | ||
#ifndef FINCLUDE_C | ||
#define FINCLUDE_C | ||
|
||
/** | ||
OK 3160 finclude : S -> F ... | ||
[FOREIGN] Reads Joy source code from stream S and pushes it onto stack. | ||
*/ | ||
void finclude_(pEnv env) | ||
{ | ||
char *str; | ||
|
||
ONEPARAM("finclude"); | ||
STRING("finclude"); | ||
str = nodevalue(env->stck).str; /* read file name */ | ||
POP(env->stck); /* remove file name from stack */ | ||
include(env, str); /* include new file */ | ||
env->finclude_busy = 1; /* tell scanner about finclude */ | ||
if (setjmp(env->finclude)) | ||
env->finclude_busy = 0; /* done with finclude */ | ||
else while (1) | ||
get_(env); /* read all factors from file */ | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
module : unassign.c | ||
version : 1.1 | ||
date : 05/06/24 | ||
*/ | ||
#ifndef UNASSIGN_C | ||
#define UNASSIGN_C | ||
|
||
/** | ||
IGNORE_POP 3235 unassign : [N] -> | ||
[IMPURE] Sets the body of the name N to uninitialized. | ||
*/ | ||
void unassign_(pEnv env) | ||
{ | ||
Index lis; | ||
int index; | ||
Entry ent; | ||
|
||
ONEPARAM(__FILE__); /* name */ | ||
ONEQUOTE(__FILE__); /* quotation on top */ | ||
lis = nodevalue(env->stck).lis; /* singleton list */ | ||
CHECKEMPTYLIST(lis, __FILE__); /* check non-empty list */ | ||
USERDEF2(lis, __FILE__); /* check user defined name */ | ||
index = nodevalue(lis).ent; /* index user defined name */ | ||
ent = vec_at(env->symtab, index); /* symbol table entry */ | ||
POP(env->stck); /* bump stack again */ | ||
ent.is_user = 1; /* ensure again user defined */ | ||
ent.u.body = 0; /* ensure empty body */ | ||
vec_at(env->symtab, index) = ent; /* update symbol table */ | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.