All Projects → wa-lang → ugo

wa-lang / ugo

Licence: other
µGo编程语言(从头开发一个迷你Go语言编译器)

Programming Languages

go
31211 projects - #10 most used programming language
LLVM
166 projects

Projects that are alternatives of or similar to ugo

ugo-compiler-book
📚 µGo语言实现(从头开发一个迷你Go语言编译器)[Go版本+Rust版本]
Stars: ✭ 996 (+2521.05%)
Mutual labels:  llvm, lexer, ugo
compiler lab
Some toy labs for compiler course
Stars: ✭ 49 (+28.95%)
Mutual labels:  llvm, lexer
llvm-kaleidoscope
LLVM Tutorial: Kaleidoscope (Implementing a Language with LLVM)
Stars: ✭ 124 (+226.32%)
Mutual labels:  llvm, lexer
suicide
LLVM pass that detects one undefined behavior, and emits code to delete your hard drive
Stars: ✭ 33 (-13.16%)
Mutual labels:  llvm
KAI
KAI is a distributed computing model written in modern C++ and is cross-plaftorm. Using custom language translators and an executor, KAI provides full reflection, persistence and cross-process communications without having to modify existing source code. KAI Comes with an automated, generational tricolor garbage collector, and Console- and Windo…
Stars: ✭ 13 (-65.79%)
Mutual labels:  lexer
Dachs
Dachs; A Doggy 🐶 Programming Language
Stars: ✭ 82 (+115.79%)
Mutual labels:  llvm
mlir-standalone-template
An out-of-tree MLIR dialect template.
Stars: ✭ 44 (+15.79%)
Mutual labels:  llvm
NatsuLang
No description or website provided.
Stars: ✭ 96 (+152.63%)
Mutual labels:  llvm
homebrew-llvm
LLVM formulae for the Homebrew package manager
Stars: ✭ 23 (-39.47%)
Mutual labels:  llvm
nballerina-cpp
Ballerina compiler backend that generates platform-specific executables.
Stars: ✭ 16 (-57.89%)
Mutual labels:  llvm
nocc
A LLVM based self-hosting C compiler
Stars: ✭ 22 (-42.11%)
Mutual labels:  llvm
TON-Compiler
Clang compiler for Free TON Virtual Machine
Stars: ✭ 56 (+47.37%)
Mutual labels:  llvm
vuo
A realtime visual programming language for interactive media.
Stars: ✭ 103 (+171.05%)
Mutual labels:  llvm
FastLua
Lua trace JIT compiler using LLVM-C
Stars: ✭ 22 (-42.11%)
Mutual labels:  llvm
llrl
An experimental Lisp-like programming language
Stars: ✭ 126 (+231.58%)
Mutual labels:  llvm
stutter
Implement a Lisp, in C, from scratch, no libs
Stars: ✭ 65 (+71.05%)
Mutual labels:  lexer
lexertk
C++ Lexer Toolkit Library (LexerTk) https://www.partow.net/programming/lexertk/index.html
Stars: ✭ 26 (-31.58%)
Mutual labels:  lexer
clangbuilder
Building Clang ♡ Utility and Environment
Stars: ✭ 101 (+165.79%)
Mutual labels:  llvm
linux
Linux kernel source tree
Stars: ✭ 234 (+515.79%)
Mutual labels:  llvm
qbicc
Experimental static compiler for Java programs.
Stars: ✭ 118 (+210.53%)
Mutual labels:  llvm

µGo 编程语言

µGo 是 Go 语言的真子集(不含标准库部分), 可以直接作为Go代码编译执行.

例子

例子 (_example/hello.ugo):

package main

func main() {
	for n := 2; n <= 30; n = n + 1 {
		var isPrime int = 1
		for i := 2; i*i <= n; i = i + 1 {
			if x := n % i; x == 0 {
				isPrime = 0
			}
		}
		if isPrime != 0 {
			println(n)
		}
	}
}

运行:

$ ugo run _examples/hello.ugo 
2
3
5
7
11
13
17
19
23
29

版权

个人学习目的可自由使用.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].