Skip to content
This repository has been archived by the owner on Apr 16, 2018. It is now read-only.

bwiedermann/lambda-trees

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lambda-trees

A visualizer for lambda expressions

Development

Development environment

The development environment has several dependencies:

To set up the environment:

  1. Install each of these dependencies:

  2. Clone this repository

  3. Run bower install to install the remaining dependencies

Modifying the parser

  1. Modify the grammar in the file assets/lambda.pegjs
  2. Generate a new parser, by running the following command in the top-level directory:
```
pegjs assets/lambda.pegjs js/lambda-parser.js
```
  1. pegjs assumes we're using node on the server, but wer' not. So, we need to modify the generated parser. a. Uncomment the first line, which looks something like:

    module.exports = (function() {
    

    b. Uncomment the last few lines, which look something like:

      return {
       SyntaxError: SyntaxError,
       parse:       parse
      };
    })();