Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Eye is a statically typed compiled language implemented using LLVM, with a syntax inspired by TypeScript

NotificationsYou must be signed in to change notification settings

agentcooper/eye

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚧 Work in progress 🚧

Eye is a statically typed compiled language implemented using LLVM, with a syntax inspired by TypeScript.

interfaceCounter{inc:()=>i64,reset:()=>void}functionmakeCounter(initialValue:i64):Counter{letcounter=initialValue;letinc=():i64=>{counter=counter+1;returncounter;};letreset=():void=>{counter=0;};return{inc:inc,reset:reset};}functionmain():i64{letcounter=makeCounter(10);letinc=counter.inc;letreset=counter.reset;print(inc());print(inc());reset();print(inc());print(inc());return0;}

Roadmap is available inTODO.md.

Build

make all

Make sure you have LLVM installed.

On macOS 13, I have LLVM installed throughBrew, with following environment variables set:

export PATH="/opt/homebrew/opt/llvm/bin:$PATH"export SDKROOT="$(xcrun --show-sdk-path)"export LIBRARY_PATH="$LIBRARY_PATH:$SDKROOT/usr/lib"export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"

Run example programs

# compile and runmake program SOURCE_FILE=snapshots/closure.eye&& ./program# compile and run (debug)DEBUG=1 make program SOURCE_FILE=snapshots/closure.eye&& ./program

Tests

Testing is done by checking the expected change in snapshots.

make snapshot

Name

The name "Eye" is inspired by theIJ bay in Amsterdam.

About

Eye is a statically typed compiled language implemented using LLVM, with a syntax inspired by TypeScript

Topics

Resources

Stars

Watchers

Forks

Languages


[8]ページ先頭

©2009-2025 Movatter.jp