Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

Study project to compare functional programming concepts in Go and JavaScript. It was developed as part of a master's course in computer science at Rosenheim Technical University of Applied Sciences.

Notifications You must be signed in to change notification settings

m-voit/concepts-of-programming-languages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Concepts of programming languages

codeql go-parser js-parser publish-js-parser

Study project to compare functional programming concepts in Go and JavaScript. It was developed as part of a master's course in computer science at Rosenheim Technical University of Applied Sciences.

Paper

The paper written as part of this study project is based on a parser for Boolean expressions developed in Go and JavaScript using parser combinators. The Boolean expression parser was then used to compare the support of functional programming concepts in the two programming languages.

Compare functional programming in Go with JavaScript

Go parser requirements and setup

A running installation of Go 1.15 is assumed. Other versions may work, but were not tested.

Open a terminal in the directory ./go-parser.

  • Run go get -t -d ./... to get dependencies of the parser.
  • Run go build ./... to build the parser.

Go parser usage

Open a terminal in the directory ./js-parser.

  • Run go test -v ./... to execute the tests.
  • Run go test -v -cover ./... to get a test coverage report.

JavaScript parser requirements and setup

A running installation of Node.js 14.x is assumed. Other versions may work, but were not tested.

Open a terminal in the directory ./js-parser.

  • Run npm install to get dependencies of the parser.

JavaScript parser usage

Open a terminal in the directory ./js-parser.

  • Run npm run test to execute the tests.
  • Run npm run test:coverage to get a test coverage report.

The test output shows an example of Boolean expressions the JavaScript implementation of the parser can parse.

About

Study project to compare functional programming concepts in Go and JavaScript. It was developed as part of a master's course in computer science at Rosenheim Technical University of Applied Sciences.

Topics

Resources

Stars

Watchers

Forks