Skip to content
forked from koturn/Whitespace

Fork of koturn's Whitespace interpreter and C transpiler

License

Notifications You must be signed in to change notification settings

wspace/koturn-c

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whitespace

Build Status

Whitespace interpreter and C-translator.

Usage

Run Whitespace program

$ ./whitespace [Whitespace source file]

Tanslate Whitespace to C

Specify -t flag and -o flag.

$ ./whitespace [Whitespace source file] -t -o out.c

If you don't specify output file with -o, C source code will output stdout.

Options

Options Function
-b, --bytecode Show code in hexadecimal
-f, --filter Visualize whitespace source code
-h, --help Show help and exit
-m, --mnemonic Show byte code in mnemonic format
-o FILE, --output=FILE Specify output filename
-t, --translate Translate brainfuck to C source code

Build

Use Makefile.

$ make

If you want to build with MSVC, use msvc.mk. msvc.mk is written for nmake.

> nmake /f msvc.mk

Dependent libraries

MSVC only

References

LICENSE

This software is released under the MIT License, see LICENSE.

Languages

  • C 85.0%
  • Makefile 15.0%