Skip to content

🎒 Assignment 3 for programming languages master course @ TU Vienna

Notifications You must be signed in to change notification settings

juliankotrba/ps-assignment3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Third Assignment

Short description

Develop a syntax-aware editor for programs in the language as de-veloped in Assignment 2. The editor shall be written in a staticallytyped functional language like Haskell and ML. In addition to theusual functionality of an editor (loading, showing, modifying and storing text), the editor shall highlight

  • obvious syntactic errors like unbalanced braces,
  • other occurrences of a variable or rule name currently pointedto by the cursor,
  • and similar useful things depending on the language.

...

Usage

For starting the project switch to the root directory and run

foo@bar:~$ elm-reactor
elm-reactor 0.18.0
Listening on http://localhost:8000

After that open http://localhost:8000/src/Main.elm

Sample source code

main-:findFiles-(*files):showFiles(*files)-.
showFiles(+x*x)-:showFile(+x)-:showFiles(*x)-.
showFiles()-.
findFiles-(*f):$(ls \*\.pdf)()-(*f)(*x).
showFile(+f)-:$(xpdf+f)()-(*a)(+b).

Tests

foo@bar:~$ elm-test

About

🎒 Assignment 3 for programming languages master course @ TU Vienna

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages