Continue working on Muffin, a programming language I made that allows you to write programs that look like cooking recipes. I started doing the dreadful frontend today---an online playground for Muffin. Finally got the CodeMirror editor to work. Then I added syntax highlighting and autocompletion for Muffin.
Today I wrote a Hello World! program. In fact, it was written in a programming language I invented. The Muffin language lets you write programs that look like cooking recipes. The picture below shows how the compiler compiles the Hello world recipe into a big chunk of js code that (surprisingly) prints out Hello world. Most part of the code generator was done now. Repo: github.com/CBerJun/Muffin
Continue working on Muffin (a weird programming language that allows you to write programs that look like cooking recipes). Day four working on the parser---it is now done (all the statements have been implemented). Next step would be doing some semantic analysis to make sure the program is valid and generating target code (JavaScript) (gonna figure out a way to implement goto in js) (Day 5 on Scrapbook)
Continue working on Muffin (a weird programming language that allows you to write programs that look like cooking recipes) Regarding the syntax I changed the "dilute" statement into "add water" to make it less redundant. Day three working on the parser; today I implemented the "add ... into ..." grammar; the picture below shows a sample program that doesn't make sense and the AST generated for it by the compiler. Look at github.com/CBerJun/Muffin for the draft design of Muffin. (Day 4 on Scrapbook)
Continue to work on Muffin (a weird programming language that allows you to write programs that look like cooking recipes) Day two working on the parser; today I implemented the "if" predicate and "set up" grammar; the picture below shows a sample program that doesn't make sense and the AST generated for it by the compiler. (Day 3 on Scrapbook)
Continue my work on Muffin (a weird programming language I invented that allows you to write programs that look like cooking recipes) Today I worked on the parser; all "toplevel" grammars have been implemented; now the parser only lacks a function that generates the AST node for each statement.
A few days ago I started making this weird programming language called Muffin in which you can write programs that look like cooking recipes. Currently I have a tokenizer done. Today I spent time changing the design of a few statements. Repo: github.com/CBerJun/Muffin