Writing a compiler11/1/2023 ![]() So go ahead and create a bunch of folders, so your local workspace now looks like this: We should organize our project around the major building blocks of a compiler. You should have these files from the clone operation: Next, clone your project and go to the project root folder in a Terminal application. gitignore (have GitHub make this for you: select “Node” when from the dropdown). I’m going to assume you’re already adept with GitHub, so create the project (your language name makes a good project name) with the appropriate README.md (add a logo and some text about your language), LICENSE (MIT or ISC is fine), and. Seriously, browse the language specification before going further. Tiger is a simple language, and generally very easy to read. It’s not that I’m lazy: (1) ASCII is just plain WRONG, (2) writing var x: x is just silly, and (3) I’m going to target JavaScript, which is async, and flushing and getting don’t really apply. I’m going to leave out the standard functions flush and getchar.I’m not going to make separate namespaces for types and non-types. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |