From 76ff5d914def4984d5b599177032ded71632a5ec Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Thu, 28 Nov 2019 15:47:10 -0500 Subject: started dealing with calling "type functions" --- README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..d946dce --- /dev/null +++ b/README.md @@ -0,0 +1,33 @@ +## toc + +`toc` is a language which compiles to C. + +--- + +### About + +`toc` is currently in development. **It is not a stable language, +and there are almost definitely bugs right now.** +I would recommend against using it for anything big or important. +Many parts of it may change in the future. + +`toc` improves on C's syntax (and semantics) in many ways, +To declare `x` as an integer and set it to 5, +you can do: + +``` +x := 5; // Declare x and set x to 5 (infer type) +x : int = 5; // Explicitly make the type int. +x : int; x = 5; // Declare x as an integer, then set it to 5. +``` + +`toc` is statically typed and has many of C's features, but +it is nearly as fast in theory. + +See `docs` for more information. + +--- + +### Help + +If you find a bug in `toc`, please [report an issue](https://github.com/pommicket/toc/issues) on GitHub. \ No newline at end of file -- cgit v1.2.3