Skip to content

francisrstokes/Brainfuck-Interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brainfuck-Interpreter

Brainfuck interpreter using a parser generated with Jison.

Running a brainfuck program

node src/bf examples/hello_world.bf

Will run the example hello world program.

Extending the grammar

The parser only allows whitespace and the regular brainfuck symbols. If you want to add comments of features from other brainfuck-like languages, then you'll need to extend the grammar file and generate a new parser.

First install dependencies: npm i

Tokens and grammar are defined in grammar/brainfuck.jison. To compile the grammar to a parser yourself, run npm run generate_parser.

About

Brainfuck interpreter using Jison

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published