Difference between revisions of "SynFacilSyn"

From Lazarus wiki
Jump to navigationJump to search
m (→‎About: Fix typo)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== About ==
 
== About ==
SynFacilSyn is 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 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]].
 
SynFacilSyn also includes the "adapter" for [[ATSynEdit]].
Line 19: Line 19:
 
You can also define Syntax programmatically which means it's possible to change individual syntax elements at runtime.
 
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 ans sections you can also use it as a parser.
+
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==
 
==Related tools==
Line 33: Line 33:
 
* [https://github.com/t-edson/P65Pas 6502 CPU compiler]
 
* [https://github.com/t-edson/P65Pas 6502 CPU compiler]
 
* [https://github.com/t-edson/Tito-s-Terminal Terminal with interpreter]
 
* [https://github.com/t-edson/Tito-s-Terminal Terminal with interpreter]
 +
 +
[[Category:Components]]
 +
[[Category:SynEdit]]
 +
[[Category:Lazarus]]

Latest revision as of 01:48, 4 January 2022

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:

  • SynFacilCompletion - Scriptable Highlighter with code-completion for the SynEdit Component of Lazarus
  • SynFacilUtils Library with utilities to create editors using SynFacilSyn and SynFacilCompletion.
  • t-Xpres Framework to create compilers/interpreters based on SynFacilSyn. Includes lexer, parser, syntaxTree, expression evaluator and support to implement code generators or virtual machines.

The following programs have been created using the above tools: