From 7dd2b1060305c3be1333c1a0c0326732c572510d Mon Sep 17 00:00:00 2001 From: Maxwell Date: Tue, 23 Dec 2025 23:47:01 +1100 Subject: [PATCH] Direct users to solstice website for docs --- README.md | 80 ++----------------------------------------------------- 1 file changed, 2 insertions(+), 78 deletions(-) diff --git a/README.md b/README.md index ad1731e..0fb51f9 100644 --- a/README.md +++ b/README.md @@ -16,82 +16,6 @@ make Solstice files use the `.sols` extension. Run files as you would with any other interpreted language. -## Using Solstice +## Docs -### Types - -* `int`: Ground int (64 bit integer) eg 3, 7, 31432 -* `double`: Ground double (Double precision floating point) eg 3.141, 2.7 -* `string`: Ground string (char*) eg "Hello, World" -* `char`: Ground char (char) eg 'a' -* `bool`: Ground bool (either true or false) - -### Printing - -Prefix an expression with `puts` to print it to the console. - -``` -puts "Hello, world!" -puts 3.141 -puts 7 -puts 'a' -puts true -``` - -### Math - -Add numbers with `+` (more operations coming soon) - -``` -puts 1 + 1 -puts 3.14 + 2.7 -puts 532 + 314 + 89432 -``` - -### Comparisons - -Compare 2 values with `==` and `!=` (more operations coming soon) - -``` -puts 5 == 5 -puts 5 != 5 -puts "dingus" == "dongus" -puts "dingus" != "dongus" -``` - -### Variables - -Set a variable with `=`, similar to Python. - -``` -x = 5 -y = 10 -puts x + y -``` - -### Control Flow - -Use `if` to execute code if a condition is true. - -``` -password = "dingus" - -if password == "password123" { - puts "Your password is insecure." -} - -if password == "dingus" { - puts "Cool password!" -} -``` - -Use `while` to loop over a statement. - -``` -number = 0 - -while number != 10 { - number = number + 1 - puts number -} -``` +Docs are avaliable at https://sols.dev/docs/ \ No newline at end of file