From 2ea0c86c547e9a9f1e723d35fbeb8c558397d517 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Tue, 9 Aug 2022 01:51:56 -0400 Subject: [PATCH] Added README --- README.md | 15 +++++++++++++++ lexer/lexer.go | 1 + 2 files changed, 16 insertions(+) create mode 100644 README.md 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)