package
Version:
v0.0.0-...-99d40e0
Opens a new window with list of versions in this module.
Published: Aug 30, 2020
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package bf parses Brainfuck source files.
Lexer scans tokens in Brainfuck source.
NewLexer constructs a Brainfuck lexer.
NextToken scans a single Brainfuck token.
Program is a sequence of Brainfuck tokens with file information.
LowerIR lowers a Brainfuck program to Nebula IR in SSA form.
Token is a lexical token in Brainfuck.
LexTokens scans a Brainfuck source files into tokens.
Type is the instruction type of a Brainfuck token.
const (
Illegal Type = iota
IncPtr
DecPtr
IncData
DecData
Print
Read
Bracket
EndBracket
)
Instruction types.
StringBF formats the instruction type as Brainfuck syntax.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.