Giter Club home page Giter Club logo

Comments (3)

pcj avatar pcj commented on July 19, 2024

Hi @Dan27694, thanks for your interest. I originally used Makefiles to compile the project, and have since converted to using bazel. I retrofitted this project with bazel some months ago for fun and recently pushed those changes up. Here's the instructions:

  1. Install bazel
  2. $ git clone https://github.com/inxar/syntacs
  3. $ cd syntacs
  4. $ bazel query //... --output label_kind (show available build targets)
  5. bazel run //src/com/inxar/syntacs:interpret-abb abbabb (run the interpreter for the 'abb' language with the input 'abbabb'

I'll try to update the documentation with more comprehensive examples. Feel free to post additional questions.

from syntacs.

 avatar commented on July 19, 2024

Thanks a lot!

from syntacs.

 avatar commented on July 19, 2024

From: "syntacs/src/org/inxar/syntacs/analyzer/syntactic/Correction.java"

I read:

/**

  • The "Wait" correction instruction. The semantics of
  • WAIT is closely tied to the notion of
  • "synchonizing tokens"; when the Parser sees a WAIT
  • instruction, it calls Correction.getValue() and
  • expects an Integer. The value of this
  • Integer should correspond to a terminal
  • Symbol. The Parser will then discard
  • incoming terminals from the LexerInterpreter until
  • it sees one that whose type matches the given
  • Integer. When that happens, the
  • Parser will advance to the next
  • Correction in the scheduled
  • Recovery.
  • For example, if the symbol type for a semicolon in some grammar
  • is 12, then WAIT 12 means discard all input
  • until you see a semicolon; when you do, go ahead to the next
  • correction in the recovery plan. In this hypothetical
  • grammar then, the semicolon is a synchronizing token.
    */

Please, can you say me how I use your project to exploit synchronizing token with an example?

Thanks in advance!

from syntacs.

Related Issues (1)

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.