Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.
/ Scope-Old Public archive

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

License

Notifications You must be signed in to change notification settings

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!