An open API service indexing awesome lists of open source software.

https://github.com/martinkindall/piton

A dinamically typed programming language inspired in python.
https://github.com/martinkindall/piton

context-free-grammar java-cup jflex jflex-cup lexer parser

Last synced: about 2 months ago
JSON representation

A dinamically typed programming language inspired in python.

Awesome Lists containing this project

README

        

# Pitón

Pitón is an Interpreted Programming Language built for educational purposes, inspired in Python and __without identation__.

It was written in Java using [JFlex](https://jflex.de/) and [CUP](https://www2.cs.tum.edu/projects/cup/).

### Requirements

- Java 21 or later
- Maven

### Usage

- Clone repository
- Compile with Maven
- Run [Piton.main](https://github.com/martinKindall/piton/blob/main/src/main/java/org/morsaprogramando/piton_language/Piton.java#L10)
- Use either __Interactive mode__ or pass a __.pi__ file.

## Examples

- See [simple_program.pi](https://github.com/martinKindall/piton/blob/main/src/main/resources/examples/simple_program.pi)

#### KEYWORDS

- IF
- ELSE
- WHILE
- PRINT
- READ
- TRUE
- FALSE

#### TODO

- Function definition
- Class definition

#### References

- CC3102 - Teoría de la Computación, Universidad de Chile.
- https://andreil26.github.io/me/uniprojects/2019/06/21/lexer_parser.html