teenytinycompiler | A small BASIC-to-C compiler written in Python | Interpreter library

 by   AZHenley Python Version: Current License: MIT

kandi X-RAY | teenytinycompiler Summary

kandi X-RAY | teenytinycompiler Summary

teenytinycompiler is a Python library typically used in Utilities, Interpreter applications. teenytinycompiler has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. However teenytinycompiler build file is not available. You can download it from GitHub.

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

            kandi-support Support

              teenytinycompiler has a low active ecosystem.
              It has 262 star(s) with 38 fork(s). There are 12 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 2 open issues and 5 have been closed. On average issues are closed in 7 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of teenytinycompiler is current.

            kandi-Quality Quality

              teenytinycompiler has 0 bugs and 0 code smells.

            kandi-Security Security

              teenytinycompiler has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              teenytinycompiler code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              teenytinycompiler is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              teenytinycompiler releases are not available. You will need to build from source code and install.
              teenytinycompiler has no build file. You will be need to create the build yourself to build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              teenytinycompiler saves you 321 person hours of effort in developing the same functionality from scratch.
              It has 770 lines of code, 65 functions and 9 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed teenytinycompiler and discovered the below as its top functions. This is intended to give you an instant insight into teenytinycompiler implemented functionality, and help decide if they suit your requirements.
            • 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
            Get all kandi verified functions for this library.

            teenytinycompiler Key Features

            No Key Features are available at this moment for teenytinycompiler.

            teenytinycompiler Examples and Code Snippets

            No Code Snippets are available at this moment for teenytinycompiler.

            Community Discussions

            QUESTION

            Are all the dependencies available in this tiny compiler written in python to get this to work
            Asked 2021-Mar-08 at 22:08

            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:02

            You 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.

            Source https://stackoverflow.com/questions/66537537

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install teenytinycompiler

            You can download it from GitHub.
            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

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/AZHenley/teenytinycompiler.git

          • CLI

            gh repo clone AZHenley/teenytinycompiler

          • sshUrl

            git@github.com:AZHenley/teenytinycompiler.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Interpreter Libraries

            v8

            by v8

            micropython

            by micropython

            RustPython

            by RustPython

            otto

            by robertkrimen

            sh

            by mvdan

            Try Top Libraries by AZHenley

            HarvestMemory

            by AZHenleyPython

            knox

            by AZHenleyGo

            superoptimizer

            by AZHenleyPython

            riscv-parser

            by AZHenleyC++

            hofstadter

            by AZHenleyPython