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

A GOLD Engine implementation in FPC

License

NotificationsYou must be signed in to change notification settings

Warfley/FPCGoldEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an engine for the GOLD Parsing System (http://goldparser.org/) written in FreePascal.

See the example for a small program that builds a parse tree and uses the Lexer to Colorize aTSynEdit

Features

  • v1.0 and v5.0 support
  • event based parse tree construction

Example Usage:

functionTMyClass.BuildTreeNode(const Produces: TGrammarSymbol; Consumes:specialize TArray<TObject>): TObject;begin  Result := TParseTree.Create(Produces.Name, Consumes);end;functionTMyClass.BuildLeafNode(const AToken: TToken): TObject;begin  Result := TParseTreeLeaf.Create(AToken.Name);end;...  Grammar := TCGTGrammar.Create;try    Grammar.LoadFromFile(FileName);    ParseTree := Grammar.ParseString(InputString, @BuildTreeNode, @BuildLeafNode);finally    Grammar.Free;end;

Documentation

Currently no documentation available specifically for the node engine.

For general engine design and how to construct your own engine check outhttps://github.com/Warfley/goldengine/docs

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp