Skip to content

Commit

Permalink
Merge pull request #1 from frugurt-lang/tree-sitter-migration
Browse files Browse the repository at this point in the history
Tree sitter migration
  • Loading branch information
leokostarev authored Apr 18, 2024
2 parents 1b3c726 + fed8ab1 commit d3fed9b
Show file tree
Hide file tree
Showing 51 changed files with 589 additions and 1,760 deletions.
File renamed without changes.
9 changes: 8 additions & 1 deletion rfruit/Cargo.toml → Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "rfruit"
name = "frugurt"
version = "0.1.0"
edition = "2021"

Expand All @@ -10,6 +10,13 @@ clap = { version = "4.5.4", features = ["derive"] }
once_cell = "1.19.0"
serde_json = "1.0.115"
thiserror = "1.0.58"
tree-sitter = "0.22.5"
proc-macro2 = "1.0.78"
tree-sitter-frugurt = "0.0.3"
#tree-sitter-frugurt = { path = "../tree-sitter-frugurt" }

[dev-dependencies]
tempfile = "3.10.1"

[build-dependencies]
cc = "*"
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
### Frugurt is interpreted language, with focus on functional and OOP.
### Frugurt is an interpreted language, with focus on functional and OOP.

> It is proof of concept, showing interesting features, in active development still
The main purpose of Frugurt is to present entirely different approach to OOP, than in other languages like Python or JavaScript.
The main purpose of Frugurt is to present an entirely different approach to OOP,
compared to other languages like Python or JavaScript.

Example

Expand Down Expand Up @@ -30,14 +31,14 @@ All types have fixed schema, that means:
- All fields must be declared at once
- Any other fields can never be declared

Also, there are 3 flavors of types:
Also, there are three flavors of types:

- struct - mutable, passed by value
- class - mutable, passed by reference
- data - immutable, passed by reference

There is also builtin data validation, using "watches", see [docs](https://leokostarev.github.io/frugurt-lang/03-object-oriented-programming/06-watches.html).

There is also builtin data validation, using "watches",
see [docs](https://frugurt-lang.github.io/frugurt/03-object-oriented-programming/06-watches.html).

```frugurt
struct Vector {
Expand Down
1 change: 0 additions & 1 deletion converter/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions converter/Setup.hs

This file was deleted.

36 changes: 0 additions & 36 deletions converter/converter.cabal

This file was deleted.

51 changes: 0 additions & 51 deletions converter/fourmolu.yaml

This file was deleted.

201 changes: 0 additions & 201 deletions converter/src/Debugize.hs

This file was deleted.

Loading

0 comments on commit d3fed9b

Please sign in to comment.