Skip to content

Core 0.2.2

Choose a tag to compare

@zweiler1 zweiler1 released this 17 Sep 18:52
· 1141 commits to main since this release
36c930e

Changelog

  • Created the Flint Language Server (fls) for LSP diagnostics, suggestions and more
  • Added ability to the fls to actually parse the program and give proper suggestions and diagnostics
  • Added ranges for string slicing and array slicing of any dimension
use Core.print

def main():
	str string = "Hello there";
	str slice = string[2..7];
	print($"{string}\n");
	print($"{slice}\n");
use Core.print

def main():
	i32[] arr = i32[10](0);
	for (idx, elem) in arr:
		elem = idx + 1;

	i32[] slice = arr[2..8];
	print($"slice.length = {slice.length}\n");
	for (idx, elem) in slice:
		print($"slice[{idx}] = {elem}\n");
use Core.print

def main():
	i32[,] arr = i32[10, 10](0);
	(I, J) := arr.length;
	for j := 0; j < J; j++:
		for i := 0; i < I; i++:
			arr[i, j] = (i + 1) * (j + 1);

	i32[,] slice = arr[3..6, 2..8];
	for (idx, elem) in slice:
		print($"slice[{idx}] = {elem}\n");
  • A bunch of smaller bug fixes

Full Changelog: v0.2.1-core...v0.2.2-core