Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Earley parser in C++

License

NotificationsYou must be signed in to change notification settings

Kingcitaldo125/CppEarley

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic C++ Earley Parser, based heavily on theEarley parser article found on Wikipedia.This is meant to be a very simplistic implementation of the Earley algorithm and pseudocode found in that article.

Requirements

Usage

Linux

Eithergit clone https://github.com/Kingcitaldo125/CppEarley.git to a directory of your choice, or retrieve the source code from a release of your choice.

To build using CMake:

mkdir buildcd buildcmake ..make

To run using the basic Earley grammar found in the Wikipedia article:

./main ../grammars/grammar.txt

The output from pointing the main target to the basic Earley grammar should be similar to the following:

../grammars/grammar.txtInput<1> =trueInput<1+> =falseInput<1+2> =trueInput<2+3*4> =true

Windows

Coming Soon - Windows is still inDev.

License

See theLICENSE file for details


[8]ページ先頭

©2009-2025 Movatter.jp