Thanks to visit codestin.com
Credit goes to github.com

Skip to content

appcypher/raccoon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raccoon

raccoon is a language with Python 3.x syntax that is amenable to static analysis. The repository both defines the spec of the language and contains a reference implementation of the compiler.

Raccoon will not maintain full syntactic and semantic compatibility with Python. Several dynamic elements known of Python are not available in Raccoon. While Raccoon prioritizes a design that benefits static analysis, it still allows Python's level of flexibility where statically determinable.

Raccoon compiler implementation generates WebAssembly code.

Below is an example of what Raccoon currently looks like:

class Person:
    """
    Class for creating details about a person.
    """

    population = 0

    def init(self, name, age):
        """
        Creates a new person
        """

        self.name = name
        self.age = age

        Person.population += 1

    def del(self):
        """
        Decrement population
        """

        Person.population -= 1

    def debug(self, f):
        """
        Create a string representation of object
        """

        return f.debug_class("Person")
            .field("name", self.name)
            .field("age", self.age)

jane = Person("Jane Doe", 23)
print("jane =", jane)

About

Python-like syntax for Rust-like performance

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages