Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 0.2 #7

Open
wants to merge 113 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
21a873a
First part of new version guide
frantufro Apr 19, 2023
95fb3c8
Added explanation and examples related to reacting to state with cond…
frantufro Apr 19, 2023
16a95ec
palabritas parser first steps
loomstyla Apr 19, 2023
dede595
Some progress on the guide an examples.
frantufro Apr 20, 2023
6ee1e37
parser update + tests
loomstyla Apr 20, 2023
38b5231
Update palabritas.pest
loomstyla Apr 20, 2023
48fc740
named buckets must be snake_case
loomstyla Apr 21, 2023
2ff5df9
Identation update
loomstyla Apr 21, 2023
6e663d1
Parsing changes and first steps on reading logic
loomstyla May 10, 2023
e6c65d7
palabritas-common
loomstyla May 16, 2023
6433f38
palabritas parser update (WIP)
loomstyla May 18, 2023
7ab5d4b
tests and fixes
loomstyla May 22, 2023
69bee0c
compiler + parser update
loomstyla May 29, 2023
1408021
fmt + clippy
loomstyla May 29, 2023
285d22f
runtime + compiler (#8)
frantufro Jun 9, 2023
e21dd82
Added unique and tags to docs.
frantufro Jun 14, 2023
0f5c18b
Buckets support (#9)
loomstyla Jun 29, 2023
74d8b53
merge fixes
loomstyla Jun 29, 2023
ebcf906
divert fix
loomstyla Jun 29, 2023
f43aa63
Feedback cli + bug fixes
loomstyla Jun 29, 2023
953e5da
Modifier fix
loomstyla Jun 30, 2023
1068a64
set in cli + parser refactoring
loomstyla Jun 30, 2023
d9c5a0e
i18n refactor
loomstyla Jun 30, 2023
b56cbbe
varaible validations
loomstyla Jun 30, 2023
4751106
test fixes
loomstyla Jul 3, 2023
5d6251a
Section existance and invalid operators check
loomstyla Jul 3, 2023
5ced14c
Tests
loomstyla Jul 3, 2023
e7c1b81
Update parser.rs
loomstyla Jul 3, 2023
541263a
Update error.rs
loomstyla Jul 3, 2023
112ee3f
error messages refactor
loomstyla Jul 3, 2023
ff09c6d
runtime errors
loomstyla Jul 3, 2023
676f8b5
tests
loomstyla Jul 3, 2023
be77d9a
more parser errors
loomstyla Jul 4, 2023
8e52ef7
Bumped version of CLI
frantufro Jul 4, 2023
5dce035
set bool fix
loomstyla Jul 4, 2023
1bb6e6f
enum validates value
loomstyla Jul 4, 2023
7502609
compiler divert fixes
loomstyla Jul 4, 2023
8c28c42
Update cuentitos.toml
loomstyla Jul 4, 2023
98f67a0
Parser done, runtime wip
loomstyla Jul 4, 2023
7dd04b9
runtime
loomstyla Jul 5, 2023
61434a9
errors refactor
loomstyla Jul 5, 2023
48b4652
now prints sets in story
loomstyla Jul 5, 2023
edd4e97
? command
loomstyla Jul 5, 2023
3d685ed
subsections are now sections children
loomstyla Jul 6, 2023
8a064cd
runtime fix
loomstyla Jul 6, 2023
698c69d
make a choice error now prints text
loomstyla Jul 6, 2023
398e70d
update section fix
loomstyla Jul 6, 2023
92d89be
divert changes + some refactoring
loomstyla Jul 6, 2023
ecdc428
cli divert command now trims blank spaces
loomstyla Jul 6, 2023
c98df0a
boomerang divert
loomstyla Jul 6, 2023
fb277d7
boomerang divert test
loomstyla Jul 6, 2023
c85afef
print variables ordered
loomstyla Jul 7, 2023
2c80d49
cli changes
loomstyla Jul 7, 2023
78f64d3
errors refactoring + new errors
loomstyla Jul 7, 2023
963997e
Update main.rs
loomstyla Jul 7, 2023
aef940d
commands now support multiple empty lines inbetween
loomstyla Jul 7, 2023
e6e108e
wip
loomstyla Jul 10, 2023
7c54e19
fixes
loomstyla Jul 10, 2023
2a1b424
refactoring
loomstyla Jul 10, 2023
8778bcb
clippy
loomstyla Jul 10, 2023
96622dd
sections can have chances
loomstyla Jul 11, 2023
dbefaa1
cli fix
loomstyla Jul 11, 2023
44315f9
grep + cli refactor
loomstyla Jul 11, 2023
03268a5
empty lines fixes
loomstyla Jul 12, 2023
f6b94cb
Q command + boomerang command + commands test
loomstyla Jul 12, 2023
51cedcc
Errors print fix
loomstyla Jul 12, 2023
5db3642
subsections support indentation
loomstyla Jul 12, 2023
5f107f4
refactor wip
loomstyla Jul 12, 2023
19ae9f8
multiple levels of subsections
loomstyla Jul 12, 2023
b4719e7
fixes
loomstyla Jul 12, 2023
7618330
Update parser.rs
loomstyla Jul 13, 2023
1baafb2
Merge pull request #43 from hiddenpeopleclub/multiple-levels-of-subse…
loomstyla Jul 13, 2023
480d169
Merge pull request #42 from hiddenpeopleclub/cli-refactor-and-grep
loomstyla Jul 13, 2023
e031cc7
Merge pull request #41 from hiddenpeopleclub/runtime-output-refactor
loomstyla Jul 13, 2023
6a4b314
Merge pull request #40 from hiddenpeopleclub/duplicated-section-names…
loomstyla Jul 13, 2023
e9c28d0
Merge pull request #39 from hiddenpeopleclub/history
loomstyla Jul 13, 2023
890d971
Merge pull request #38 from hiddenpeopleclub/divert-changes
loomstyla Jul 13, 2023
fd6dc1b
Merge pull request #37 from hiddenpeopleclub/subsections-fix
loomstyla Jul 13, 2023
6e3358a
Merge pull request #33 from hiddenpeopleclub/full-state-print
loomstyla Jul 13, 2023
2d46796
Merge pull request #36 from hiddenpeopleclub/Feedback-cli-set
loomstyla Jul 13, 2023
972d813
Merge pull request #34 from hiddenpeopleclub/compiler-errors-prints-file
loomstyla Jul 13, 2023
2c8a823
Merge pull request #35 from hiddenpeopleclub/divert-rework
loomstyla Jul 13, 2023
f1777b7
Merge pull request #32 from hiddenpeopleclub/runtime-errors
loomstyla Jul 13, 2023
b46f7a1
Merge pull request #31 from hiddenpeopleclub/new-compiler-errors
loomstyla Jul 13, 2023
23af311
Merge pull request #30 from hiddenpeopleclub/i18n-refactor
loomstyla Jul 13, 2023
6d3057c
Merge pull request #29 from hiddenpeopleclub/set-cli
loomstyla Jul 13, 2023
a87bc89
Merge pull request #28 from hiddenpeopleclub/cli-feedback-and-bug-fixes
loomstyla Jul 13, 2023
cd21e0f
clippy
loomstyla Jul 13, 2023
1adaa91
Fixed divert bug
loomstyla Jul 13, 2023
f12e051
fixed output on choice pick + tests
loomstyla Jul 13, 2023
0efcf29
another divert fix
loomstyla Jul 13, 2023
315fa3e
Merge pull request #44 from hiddenpeopleclub/bug-fixes
loomstyla Jul 14, 2023
5abf0da
divert fixes and END changes
loomstyla Jul 19, 2023
db86ad1
Rustfmt fixes
frantufro Jul 21, 2023
95c2b27
Update palabritas.md
loomstyla Jul 21, 2023
685ca84
Unnamed buckets in sections
loomstyla Jul 21, 2023
4686a2c
Create cli.md
loomstyla Jul 21, 2023
d048c58
Update cli.md
loomstyla Jul 21, 2023
dcec7ca
documentation update
loomstyla Jul 24, 2023
06fd4ed
Update cli.md
loomstyla Jul 24, 2023
aa28c3c
Update cuentitos.toml
loomstyla Jul 24, 2023
834170f
Merge pull request #45 from hiddenpeopleclub/bug-fixes
loomstyla Jul 24, 2023
ede5667
new_compiler_errors
loomstyla Jul 26, 2023
9004e52
Crash fix
loomstyla Sep 6, 2023
0ed80be
buckets fix
loomstyla Oct 2, 2023
6cbd458
skip implementation
loomstyla Oct 2, 2023
715b40f
story_progress_style configuration
loomstyla Oct 5, 2023
007399b
Update cuentitos.toml
loomstyla Oct 5, 2023
d709e10
Merge pull request #46 from hiddenpeopleclub/skip-command
loomstyla Oct 5, 2023
9046002
skip on end fix
loomstyla Oct 6, 2023
b19889c
Update cuentitos.toml
loomstyla Oct 17, 2023
119035d
Revert "Update cuentitos.toml"
loomstyla Oct 17, 2023
83bc279
Update i18n.rs
loomstyla Nov 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ Cargo.lock

# These are backup files generated by rustfmt
**/*.rs.bk

.DS_Store
**/*.db
history.txt
7 changes: 3 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
[workspace]
resolver = "2"
members = [
"common",
"compiler",
"runtime",
"runtime-c",
"palabritas",
"compiler",
"common",
"cli",
"editor/src-tauri"
]
2 changes: 0 additions & 2 deletions bindings/c/build.sh

This file was deleted.

Binary file removed bindings/c/cuentitos
Binary file not shown.
52 changes: 0 additions & 52 deletions bindings/c/cuentitos.cpp

This file was deleted.

54 changes: 0 additions & 54 deletions bindings/c/cuentitos.hpp

This file was deleted.

8 changes: 4 additions & 4 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[package]
name = "cuentitos-cli"
version = "0.0.0"
version = "0.2.0"
edition = "2021"

[[bin]]
name = "cuentitos"
path = "src/main.rs"

[dependencies]
# serde = { version = "1.0.144", features = ["derive"] }
# rmp-serde = "1.1.1"
clap = { version = "4.0.17", features = ["derive"] }
cuentitos-compiler = { path = "../compiler" }
cuentitos-runtime = { path = "../runtime" }
palabritas = { path = "../palabritas" }
regex = "1.7.0"
notify = "5.1.0"
pest = "2.0"
rustyline = "12.0.0"
3 changes: 3 additions & 0 deletions cli/build/cuentitos.db
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
����Text��`You've just arrived in the bustling city, full of excitement and anticipation for your new job. ���������Text��WThe skyline reaches for the clouds, and the sounds of traffic and people surround you. ���������Text�فAs you take your first steps in this urban jungle, you feel a mix of emotions, hoping to find your place in this new environment.���������Text��uFeeling mentally and physically exhausted from the day's adventures, you decide it's time to head back to your hotel.���������Text�٥As you enter the peaceful sanctuary of your room, you take a deep breath, relieved to have a quiet space where you can recharge and prepare for the challenges ahead.���������Text��)The sun shines bright through the window.����������time_of_day�Integer�NotEqual�night���Text��-The moonlight gives the room a peaceful tone.����������time_of_day�Integer�Equal�night���Text��?You start to think about all the stuff you need to do tomorrow.�� ��������time_of_day�Integer�Equal�night���Text�� That makes you feel overwhelmed.��
��������time_of_day�Integer�Equal�night����energy�Integer�LessThan�10���Text��!You decide to focus on the now...��
��������time_of_day�Integer�Equal�night�
51 changes: 51 additions & 0 deletions cli/fixtures/en.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
Id,Text
9,I visit a popular street market to experience the city's unique flavors and energy.
1,"You've just arrived in the bustling city, full of excitement and anticipation for your new job."
61,I call my parents
89,You get to the farmer's market. It's very early and some stands are still being set up.
42,You start to think about all the stuff you need to do tomorrow.
49,I make some tea
56,I go to bed
82,Go to the Farmer's Market
64,"The phone rings twice, and dad picks up. You have a good chat."
2,"The skyline reaches for the clouds, and the sounds of traffic and people surround you."
5,"As you stroll through the nearby park, the soothing sounds of rustling leaves and chirping birds help calm your senses."
38,The sun shines bright through the window.
17,"You come across a vendor with furrowed brows and a tense expression, their voice raised as they heatedly argue with a customer over a transaction at their stand."
28,The musician smiles and nods thanking you.
37,"As you enter the peaceful sanctuary of your room, you take a deep breath, relieved to have a quiet space where you can recharge and prepare for the challenges ahead."
13,"You notice the stand owner, their eyes sparkling with joy as they animatedly describe their homemade offerings to an eager customer."
44,That makes you feel overwhelmed.
52,You sit in the couch to enjoy your tea. Drink half of the cup and fall asleep.
23,You feel they're too busy to bother them with questions.
80,Explore a museum
86,You get to the museum door. You watch through the window. It seems crowded.
57,"Feeling depleted of spoons, you go right back to bed."
67,"The phone rings twice, and mom picks up. You have a good chat."
4,I take a walk through a nearby park to relax and acclimate to the city.
21,"You observe a vendor at a small food stand, their shoulders slumped and eyes slightly glazed as they quietly serve customers, mustering just enough energy to complete each transaction."
32,I grab my phone and take pictures of the murals.
71,"The phone rings ten times, nobody is at home."
26,"You take a moment to appreciate the beauty of the music, feeling a connection to the artist and the vibrant energy they bring to the urban landscape."
36,"Feeling mentally and physically exhausted from the day's adventures, you decide it's time to head back to your hotel."
8,This serene oasis gives you the confidence to face the challenges ahead as you acclimate to your new life in the bustling city.
14,"You see the owner beaming with joy, their infectious smile and animated gestures inviting customers to try their delectable creations."
10,"At the bustling street market, you discover a food stand offering mouthwa tering delicacies."
34,"This unexpected oasis of visual tranquility provides a respite from the chaos of the city, inspiring you to explore more of the urban canvas and the stories it holds."
7,"A solitary figure sits on the bench, engrossed in a book, seemingly unfazed by the surrounding city noise."
3,"As you take your first steps in this urban jungle, you feel a mix of emotions, hoping to find your place in this new environment."
51,A good cup of tea is always good to regulate after the sensory overload of the city.
73,You decide it's now time to go to sleep.
79,You wake up feeling refreshed. Let's see what this day brings.
29,"I nod when the musician looks my way, to show I really enjoy the music."
27,I leave two dollars to the artist.
18,"You spot a visibly agitated vendor, their clenched fists and piercing glare making it clear that they're unhappy with the current situation unfolding before them."
31,"Each colorful mural tells a different story, capturing your imagination and sparking your creativity."
22,"The vendor at a nearby food stand appears worn, their movements slow and deliberate, as they attempt to maintain a smile while attending to the seemingly endless stream of customers."
30,"Wandering the market, you stumble upon a hidden alley adorned with vibrant street art."
25,"The captivating sound creates a soothing bubble, momentarily transporting you away from the city's noise."
6,"You find a quiet bench to sit on, taking a moment to breathe deeply and gather your thoughts."
24,"As you try to navigate the crowded market, you're drawn to the entrancing melody of a street musician."
33,"I keep walking, even if the murals look good, the darkness of the alley is unsettling."
40,The moonlight gives the room a peaceful tone.
47,You decide to focus on the now...
Binary file added cli/fixtures/script
Binary file not shown.
Loading