Sign in Join
Wiki copytemporary

SynFacilSyn

About

SynFacilSyn is a Lazarus cross-platform library that includes a SynEdit highlighter that also can work as a lexer because of its flexible syntax definition file. It's well documented and has been used in several projects as both a highlighter and a lexer.

SynFacilSyn also includes the "adapter" for ATSynEdit.

Author: Tito Hinostroza

License: GPL 2

Download

GitHub repository: https://github.com/t-edson/SynFacilSyn

Features

The main advantage of using SynFacilSyn as a lexer is that in a SynEdit editor you can actually see the tokens colored appropriately, without doing anything else. So if you define a lexer, you are defining a source highlighter too.

You can use an XML file to define the syntax, defining the tokens using tags and various RegEx constructs. You can also specify colouring of the tokens if you need it.

You can also define Syntax programmatically which means it's possible to change individual syntax elements at runtime.

SynFacilSyn's highlighter is fast and lightweight. It also includes useful methods for accessing the text content after the scan. Since it allows you to define recursive blocks and sections you can also use it as a parser.

Related tools

SynFacilSyn is the base library for other tools that can be used together to create a powerful compiler, interpreter or IDE:

The following programs have been created using the above tools:


From the Free Pascal wiki, page "SynFacilSyn", as it stood on 2022-01-04 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.