Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 587 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 587 Bytes

Lang

Compiler in C for a simple programming language that compiles to x64 assembly (NASM syntax).

Features

  • Functions
  • Scopes
  • Pointers
  • Arrays
  • Structs
  • Type inference

Hello World Example

extern puts(str: char *);
extern strlen(str: char *) -> int;

func main() -> int {
	str := "Hello world!";	
	puts(str);

	return strlen(str);
}

Dependencies

  • NASM (https://www.nasm.us/): used as assembler and should be added to the system Path variable.
  • Microsoft Linker (included with Visual Studio) is used for linking.