Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

EliteAsian123/Scope-Old

Repository files navigation

This is the old, interpreted verison of Scope. Click here for the new verison (which is better).






Scope Logo

Scope is an interpreted, object oriented programming language that I am in the process of creating.

Hello World in Scope

Cool Features

Temporary variables are boring...

Hello World in Scope

Function bloat...

Hello World in Scope

I don't need i... (temporarily disabled)

Hello World in Scope

Initilizing an array is annoying...

Hello World in Scope

Installation

# Clone!
$ git clone https://github.com/EliteAsian123/Scope.git

# If you don't have these installed
$ sudo apt install gcc
$ sudo apt install flex
$ sudo apt install bison

Building

# These warnings are normal
$ sh build.sh
src/scope.y: warning: 1 shift/reduce conflict [-Wconflicts-sr]
src/output/scope.tab.c: In function ‘yyparse’:
src/output/scope.tab.c:1486:16: warning: implicit declaration of function ‘yylex’ [-Wimplicit-function-declaration]
 1486 |       yychar = yylex ();
      |                ^~~~~

Testing

$ sh tests.sh
Testing `Tests/Arrays.scope`
Testing `Tests/Floats.scope`
Testing `Tests/For.scope`
...
Done!

About

A work in progress programming language made using Yacc, Flex, and C.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors