teenytinycompiler | A small BASIC-to-C compiler written in Python | Interpreter library
kandi X-RAY | teenytinycompiler Summary
kandi X-RAY | teenytinycompiler Summary
This is a small compiler to demonstrate how compilers work to my students. It compiles our own dialect of BASIC to C, while being written in Python. Read the tutorial: Let's make a Teeny Tiny compiler, part 1 as well as part 2 and part 3. The code is split into folders (part1, part2, part3) that correspond with the complete code from the parts of the tutorial. See part3 for the finished compiler.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get the next token
- Move to the next character
- Return the next character
- Exit lexer
- Parse the program
- Increment the next token
- Abort the given message
- Checks if the given kind matches the given kind
- Write the file
teenytinycompiler Key Features
teenytinycompiler Examples and Code Snippets
Community Discussions
Trending Discussions on teenytinycompiler
QUESTION
https://github.com/AZHenley/teenytinycompiler.git
Can you get this to run I got it from this website:
http://web.eecs.utk.edu/~azh/blog/teenytinycompiler1.html
I followed this tutorial and it failed to load the source file.
I am new to python.
this is a screenshot of when I ran the python project
...ANSWER
Answered 2021-Mar-08 at 22:02You never pass in the source file. The command you have now only starts the TeenyTiny compiler. You can pass in the source file as follows.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install teenytinycompiler
You can use teenytinycompiler like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page