diff options
| author | Kyle Gunger <kgunger12@gmail.com> | 2024-03-25 22:39:06 -0400 | 
|---|---|---|
| committer | Kyle Gunger <kgunger12@gmail.com> | 2024-03-25 22:39:06 -0400 | 
| commit | f3a773c750181f8f3d52fd672587814275a04bd7 (patch) | |
| tree | 8c37ae892960f0988aa6006661beef4ff8b8e8e5 /tnslc/tokenizer_wrapped.tnsl | |
| parent | 0bc05b40d541483d16445b98ea0841d1912a8198 (diff) | |
Remove old parser files
Diffstat (limited to 'tnslc/tokenizer_wrapped.tnsl')
| -rw-r--r-- | tnslc/tokenizer_wrapped.tnsl | 35 | 
1 files changed, 0 insertions, 35 deletions
| diff --git a/tnslc/tokenizer_wrapped.tnsl b/tnslc/tokenizer_wrapped.tnsl deleted file mode 100644 index 70a074e..0000000 --- a/tnslc/tokenizer_wrapped.tnsl +++ /dev/null @@ -1,35 +0,0 @@ -:include "c_wrap_linux.tnsl" -:include "logging.tnsl" -:include "utils.tnsl" -:include "vector.tnsl" -:include "tokenizer.tnsl" - -{}uint8 w_usage = "Usage: tokenizer [file in] [file out]" - -/; main (int argc, ~~uint8 argv) [int] -	asm "mov r8, rdi" -	asm "mov r9, rsi" - -	/; if (argc < 3) -		_printf(~w_usage{0}) -		return 1 -	;/ - -	~void fin = _open_file(argv{1}) -	~void fout = _create_file(argv{2}) - -	Vector tokens = tokenize_file(fin) -	~Token tok - -	/; loop (int i = 0; i < tokens.num_el) [i++] -		tok = tokens.get(i) -		print_token(tok`, fout) -		tok`._del() -	;/ - -	_close_file(fin) -	_close_file(fout) - -	return 0 -;/ - |