Comments (3)
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:
- Install bazel
$ git clone https://github.com/inxar/syntacs
$ cd syntacs
$ bazel query //... --output label_kind
(show available build targets)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.
Thanks a lot!
from syntacs.
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 terminalSymbol
. TheParser
will then discard- incoming terminals from the
LexerInterpreter
until - it sees one that whose type matches the given
Integer
. When that happens, theParser
will advance to the nextCorrection
in the scheduledRecovery
.- 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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from syntacs.