<commit_before>S" pass1.fs" included
S" lgp.fs" included
S" prolog-epilog.fs" included
S" regs.fs" included
S" asm.fs" included

\ The new colon compiler starts here.  It's technically part of
\ pass 1 implementation, but ; drives subsequent passes as well.

host definitions

: :0		buf0 fi0 ni0 label0 esp0 regmask0 ;
: pass1		:0 bl word drop ;
: passes	lgp prolog epilogs reg asm ;
: ;,		rfs, passes ;

target definitions

:: :		pass1 ;;
:: ;		;, ;;

host definitions<commit_msg>Let colon define proper words, support external defs<commit_after>warnings off

S" pass1.fs" included
S" lgp.fs" included
S" prolog-epilog.fs" included
S" regs.fs" included
S" syms.fs" included
S" asm.fs" included

\ External definitions have symbol table entries, but don't exist in the
\ current program listing.  Therefore, we fake such definitions by injecting
\ a name directly into the symbol table, and using the resulting ordinal to
\ fake a word which, when invoked, compiles a call to that routine.
: extern	>in @ bl word count define swap >in ! create , does> @ call, ;

\ The new colon compiler starts here.  It's technically part of
\ pass 1 implementation, but ; drives subsequent passes as well.

host definitions

: :0		buf0 fi0 ni0 label0 esp0 regmask0 ;
: pass1		:0 extern ;
: passes	lgp prolog epilogs reg asm ;
: ;,		rfs, passes ;

target definitions

:: :		pass1 ;;
:: ;		;, ;;

host definitions
{'fraction_non_alphanumeric': 0.09162491052254831, 'fraction_numerical': 0.01717967072297781, 'mean_word_length': 3.820689655172414, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3252048', 'n_tokens_mistral': 470, 'n_tokens_neox': 455, 'n_words': 188}