Giter Site home page Giter Site logo

christianp / grammars-for-informal-notation Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 0.0 357 KB

A customisable parsing expression grammar for Numbas' JME

License: Apache License 2.0

HTML 0.70% JavaScript 98.65% Makefile 0.01% CSS 0.64%
numbas computer-algebra parsing javascript peg grammar

grammars-for-informal-notation's Introduction

We're working on a system which can parse student's ambiguous mathematical notation.

  1. Offer suggestions or decided what is meant based on context.
  2. Flexible parsing rules based on commonly used mathematical contexts.
  3. Output the resulting parse-trees in a variety of languages, e.g. LaTeX, Maxima.

The longer term goal of this work is to use the resulting parser in an online assessment system with students.

To run the tests

  • Install npm
  • Install nearley: npm install nearley
  • Compile the grammar to JavaScript: make jme-nearley.js
  • Now test.html should work.

Parsing libraries

  • PEGjs - creates simple, unambiguous parsers.
  • Nearley - creates very versatile parsers, and returns multiple results for ambiguous grammars.

grammars-for-informal-notation's People

Contributors

christianp avatar sangwinc avatar

Watchers

 avatar  avatar  avatar  avatar

grammars-for-informal-notation's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.