diff --git a/README.md b/README.md new file mode 100644 index 0000000..dfb0616 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +# ARF + +The ARF programming language. + +This is still under development and does not compile things yet. Once complete, +it will serve as a temporary compiler that will be used to write a new one using +the language itself. + +## Checklist + +- [X] File reader +- [ ] File -> tokens +- [ ] Tokens -> syntax tree +- [ ] Syntax tree -> semantic tree +- [ ] Semantic tree -> C -> object file diff --git a/lexer/lexer.go b/lexer/lexer.go index b8eec36..ecc1250 100644 --- a/lexer/lexer.go +++ b/lexer/lexer.go @@ -5,6 +5,7 @@ import "github.com/sashakoshka/arf/file" // LexingOperation holds information about an ongoing lexing operataion. type LexingOperation struct { file *file.File + char rune } // Tokenize converts a file into a slice of tokens (lexemes)