Skip to content
View EvanWieland's full-sized avatar
πŸ€
Happening
πŸ€
Happening

Block or report EvanWieland

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
EvanWieland/README.md

πŸ—οΈ Current Pet Project

Pudl is a simple, lightweight, and easily customizable programming language. Go check it out!

About Pudl

Pudl is written using LLVM, the amazing compiler project. I've built this project off of the great work done by Max Balushkin. His approach to building a language without relying on a third party parser/lexer combo - such as Bison/Flex, ANTLR, etc. - intrigued me. Although, I'm changing a lot of the code to fit my needs, Balushkin's work still gave Pudl a huge jump start.

Expect more changes to Pudl in the future. This project is entirely for fun, so progress may be slow.

Example

Pudl source code
func inc( int a ) : int return a + 1

func mast : int {
  print inc( 5 )
  return 0
}
LLVM IR output (after optimization passes)
; ModuleID = 'pudl compiler'
source_filename = "pudl compiler"

@.formati = private constant [4 x i8] c"%d\0A\00"
@.formatf = private constant [4 x i8] c"%f\0A\00"

declare i32 @printf(i8* %0, ...)

define i32 @inc(i32 %a) {
entry:
  %0 = add i32 %a, 1
  ret i32 %0
}

define i32 @mast() {
entry:
  %0 = call i32 @inc(i32 5)
  %1 = call i32 (i8*, ...) @printf(i8* noundef nonnull dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.formati, i64 0, i64 0), i32 %0)
  ret i32 0
}

Go check Pudl out!


πŸ”₯ My Activity

GitHub Streak

Top Langs

Pinned Loading

  1. Pudl Pudl Public

    The Pudl programming language.

    C++ 1

  2. brute brute Public

    πŸ— Perform brute force attacks on encrypted HFS+ drives.

    Shell 6

  3. Shady Shady Public

    😎 Little OpenCV program written in C++ that augments glasses onto a persons face.

    C++

  4. Snitch Snitch Public

    πŸ–ΌοΈ πŸ“· πŸ€– Simple image recognition model using TensorFlow.

    Jupyter Notebook

  5. cordova-plugin-wayfarer cordova-plugin-wayfarer Public

    πŸŒŠβ›΅πŸŒŠ Cordova plugin for determining activity based on device motion.

    Java 1

  6. cordova-plugin-netto cordova-plugin-netto Public

    πŸŒ™πŸ¦‰ Cordova plugin for keeping a watchful eye on network usage stats.

    Objective-C