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.
- Host: GitHub
- URL: https://github.com/martinkindall/piton
- Owner: martinKindall
- License: mit
- Created: 2025-03-16T22:09:24.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-03-16T22:40:40.000Z (2 months ago)
- Last Synced: 2025-03-16T23:25:32.802Z (2 months ago)
- Topics: context-free-grammar, java-cup, jflex, jflex-cup, lexer, parser
- Language: Java
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
- 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