Skip to content

Commit

Permalink
Hooks for compiler targets.
Browse files Browse the repository at this point in the history
  • Loading branch information
larsbrinkhoff committed Nov 20, 2017
1 parent d179fe1 commit 94041b4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/meta.fth
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@
require search.fth

vocabulary t-words
defer t-compile,
defer t-literal
defer t,
: t-word ( a u xt -- ) -rot "create , does> @ t, ;
: t-word ( a u xt -- ) -rot "create , does> @ t-compile, ;
: fatal cr source type cr bye ;
: ?undef 0= if ." Undefined!" fatal then ;
: t-search ['] t-words search-wordlist ;
Expand Down Expand Up @@ -68,13 +70,15 @@ target-image
0 value latest

' , is t,
' t, is t-compile,

include lib/xforward.fth

: compile parse-name postpone sliteral postpone "' postpone , ; compile-only
: [compile] also compiler ' previous compile, ; compile-only
: t-literal compile (literal) , ;
: (t-literal) compile (literal) , ;
also forth
' (t-literal) is t-literal
: t-constant create , does> @ t-literal ;
previous

Expand Down

0 comments on commit 94041b4

Please sign in to comment.