顯示具有 grammar 標籤的文章。 顯示所有文章
顯示具有 grammar 標籤的文章。 顯示所有文章

2023年11月1日 星期三

delphi grammar defines language

      https://en.wikipedia.org/wiki/Comparison_of_programming_languages_(basic_instructions)
https://delpysuite.sourceforge.net/grammar.html

 delphi.grammar delphi comment.grammar asm grammar 

https://www.sigmdel.ca/michel/program/delphi/parser/parser1_en.html

Parsing a Simplified Grammar

Behavioral.Interpreter Pattern Delphi  grammatical representation

GOLD Parsing System - Grammar Downloads

https://sourcemaking.com/design_patterns/interpreter/delphi

Interpreter Design Pattern in Delphi

Delphi module This module examines the role of grammar in Modern Language Teaching (MLT)

PDF) A Delphi Application for the Syntactic and Lexical Analysis of a Phrase Using Cocke, Kasami an

https://slideplayer.com/slide/13207852/
Writing a Simple DSL Compiler with Delphi - ppt download

http://www.felix-colibri.com/papers/db/sql_parser/sql_parser.html
delphi grammar .bnf
https://pygments.org/docs/lexers/
delphi Interface section TYPE code delphi grammar .bnf
class pygments.lexers.pascal.DelphiLexer
    短名称
        delphi, pas, pascal, objectpascal
    文件名
        *.pas, *.dpr
    MIME 类型
        text/x-pascal
    For Delphi (Borland Object Pascal), Turbo Pascal and Free Pascal source code.
    Additional options accepted:
    turbopascal
        Highlight Turbo Pascal specific keywords (default: True).
    delphi
        Highlight Borland Delphi specific keywords (default: True).
    freepascal
        Highlight Free Pascal specific keywords (default: True).
    units
        A list of units that should be considered builtin, supported are System, SysUtils, Classes and Math. Default is to consider all of them builtin.
DrDiettrich Refs   grammar related references OPLG railroad diagrams
http://www.semdesigns.com/Products/DMS/DMSToolkit.html
DMS/SRT (or just "DMS") can operate at large scale, on arbitrary mixtures of domains (computer languages, e.g., C++, Java, COBOL, SQL, HTML, Verilog, ...).

https://stackoverflow.com/questions/9405722/produce-delphi-code-that-will-parse-a-file-with-a-given-bnf-format

the Delphi 5 EBFN grammar
Felix Colibri
http://www.felix-colibri.com › compilers
We are using our GenCot parser generator to analyze Delphi programs. This generator is used to parse Pascal (and Delphi) as well as other grammars (C, PDF, ...

delphi Interface section TYPE code delphi grammar

https://github.com/gotthardsen/Delphi-ANTRL4-Grammar/blob/master/Delphi.g4

visualisation bnf grammar Syntax

Using New Delphi Coding Styles and Architectures
https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Declarations_and_Statements_(Delphi)

delphi class identifier grammar
slebok.github slebok github pascal  Grammar Grammar extracted
https://slebok.github.io/zoo/index.html#pascal_delphi_object_extracted
http://slebok.github.io/zoo/
http://grammarware.net/
Browsable Pascal Grammar
  A Case Study Comparing GLR Parsing Algorithms
delphi class identifier grammar Syntax Program variables  procedures
Writing a Simple DSLCompilerwith Delphi Primož Gabrijelčič / primoz.gabrijelcic.org
delphi class identifier grammar Syntax Program Expression Statements
https://www.codeproject.com/Articles/10492/Introduction-to-GOLD-Parser
Grammars programming languages  class identifier grammar Syntax Program Expression Statements

2023年10月22日 星期日

some delphi Controls List Components List Hierarchical “Tree” list Controls vs Components List List of Delphi controls on a form – Tree hierarchy and flat list (VCL) – Scott Hollows – One Line At A Time

 https://www.gesource.jp/weblog/?p=6325
JvInterpreterでDelphi/C++Builderアプリケーションに簡易Pascal言語を組み込む – 山本隆の開発日誌

https://scotthollows.com/2016/10/12/list-of-delphi-controls-on-a-form-hierarchical-and-flat-list-vcl/
List of Delphi controls on a form – Tree hierarchy and flat list (VCL) – Scott Hollows – One Line At A Time
https://scotthollows.com/2016/10/12/list-of-delphi-controls-on-a-form-tree-hierarchy-and-flat-list-firemonkey/
Controls List Components List Hierarchical “Tree” list Controls vs Components List

https://www.beginend.net/?feed=249
begin end - Scott Hollows Delphi
https://www.delphifeeds.com/

http://felix-colibri.com/papers/colibri_utilities/component_to_code/component_to_code.html
Felix Colibri- Component To Code


https://stackoverflow.com/questions/58853092/how-to-show-hide-non-visual-components-names
delphi - How to show/hide non-visual components names? - Stack Overflow

http://www.felix-colibri.com/papers/colibri_utilities/dfm_parser/dfm_parser.html
Felix Colibri- The .DFM Parser
https://stackoverflow.com/questions/40458858/recursive-procedure-for-getting-child-records-in-hierarchical-dataset



https://tscap32.sourceforge.net/
tscap32 Delphi Video Component
http://www.destructor.de/firebird/fbdelphi/index.htm
Firebird and Borland Delphi
https://forum.lazarus.freepascal.org/index.php?topic=20781.0
New component tab with graphic components like TArrow, TLed etc.
https://www.trisunsoft.com/visual-graph/getting-started/use-vg-component-activex-delphi.htm
Visual Graph Getting Started - Use ActiveX Control in Delphi 6

2023年10月7日 星期六

Abstract Syntax Tree AST Concrete Syntax Trees CST machine code state machine Compiler Construction ambiguous grammars Value stack manipulation

 Abstract Syntax Tree

 Concrete Syntax Trees CST

   machine code state machine  

Compiler Construction ambiguous grammars 

Value stack manipulation

https://libcst.readthedocs.io/en/latest/index.html

https://www.eclipse.org/articles/Article-HowToProcessOCLAbstractSyntaxTrees/index.html

Object Constraint Language

  Compiler Construction
  parse tree, concrete syntax tree. • abstract syntax trees ... 1-address codes (stack-machine code), 2 address codes. • well-suited for ... 

Crafting a Compiler - 2010.pdf http://www.cs.nthu.edu.tw › slides › CSC4180 › C...
  ACTDL Madrid   syntax tree (AST), which is created as the primary artifact of ... Most compilers build an AST, but relatively few texts articulate its construction and use.

Compilers: Principles, Techniques, and Tools
http://www.cs.nthu.edu.tw › slides › CSC4180 › A...
The compiler itself appears in the appendix. Chapter 3 covers lexical analysis, regular expressions, finite-state machines, and scanner-generator tools.

Languages and Compilers | Johan Jeuring
Academia.edu
https://www.academia.edu › Language...
... grammars and Haskell datatypes. To this end, we introduce the notion of abstract syntax, and show how to obtain an abstract syntax from a concrete syntax.

Block-strucured via stack-organized separate chaining Evolution” of the hash table code snippet

code generator  itself be “phased” additional intermediate representation(s) (IR) intermediate code

Intermediate code generation

https://studylib.net/doc/12276210/%E2%80%A2-intermediate-code-%E2%80%A2-generating-machine-independent-inte...

• Intermediate Code • Generating machine-independent intermediate form.

2023年10月1日 星期日

Parsing Expression Grammars Parsing Algorithms Formal Languages grammar PEG Parsing Expression Grammar BNF concrete syntax tree Abstract Syntax Tree AST Syntax tree CFGs

(PDF) Parsing Expression Grammars:
ResearchGate
https://www.researchgate.net › publication
Parsing Expression Grammars (PEGs) provide an alternative, recognition-based formal foundation for describing machineoriented syntax, which solves the ambiguity ...

A Guide To Parsing: Algorithms And Terminology
tomassetti.me
https://tomassetti.me › guide-parsing-al...
An in-depth coverage of parsing terminology an issues, together with an explanation for each one of the major algorithms and when to use them.

Syntax Error Recovery in Parsing Expression Grammars
arXiv
 PEGs have a concrete syntax based on the syntax of regexes, or extended regular expressions. Unlike Context-Free. Grammars (CFGs), PEGs avoid ...

Automatic syntax error reporting and recovery in parsing ...
ScienceDirect
https://www.sciencedirect.com › abs › pii
 SQ de Medeiros  We proposed algorithms to automate the process of adding error reporting and error recovery to parsers based on Parsing Expression Grammars.
 

Notes on Syntax and Parsing 1 Formal Languages
New York University
https://cs.nyu.edu › wies › teaching › pl-fa18
The abstract syntax describes the structure of a program as an abstract syntax tree. Such a tree abstracts from some of the specifics of the concrete syntax, ...
 

2023年9月21日 星期四

Looking for a Complete Delphi (object pascal) syntax delphi programming grammar EBNF grammar check grammar and spell check extension

 Looking for a Complete Delphi (object pascal) syntax

 delphi programming grammar EBNF grammar check

 grammar and spell check extension

http://www.felix-colibri.com/papers/compilers/delphi_5_grammar/delphi_5_grammar.html 

Delphi Quick Syntax Reference

https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Code_Completion

ai Complete code  AI-Powered Code Completion  

Coding Assistant

https://stackoverflow.com/questions/171827/looking-for-a-complete-delphi-object-pascal-syntax

https://sourcegraph.com/search

https://sourceforge.net/software/product/Pascal/integrations/

parsing system designed design multiple programming languages EBNF ast tree tac rtl rc

 https://www.webpages.uidaho.edu/~jory/babel.html

https://ebin.pub/design-and-implementation-of-compiler-9788122428650.html

http://ckw.phys.ncku.edu.tw/public/pub/Notes/Computers/Lectures/Old/Programming/The%20Language%20List%20-%20Version%202_4,%20January%2023,%201995.htm

2023年9月9日 星期六

Open Source HTML Parsers in Java

 https://java-source.net/open-source/html-parsers

Jsoup Java Html Parser JTidy jsoup Jericho HTML Parser Validator.nu HTML Parser Jaunt API NekoHTML  HtmlCleaner TagSoup

https://github.com/validator/htmlparser

 https://about.validator.nu/htmlparser/

http://jericho.htmlparser.net/docs/index.html 

https://en.wikipedia.org/wiki/Document_Object_Model#Libraries

https://en.wikipedia.org/wiki/Comparison_of_web_browsers

https://en.wikipedia.org/wiki/JavaScript_engine

https://en.wikipedia.org/wiki/ECMAScript

https://en.wikipedia.org/wiki/Browser_engine


https://en.wikipedia.org/wiki/Category:Layout_engines

2023年8月30日 星期三

regex c++ | regular expression examples – vishal chovatiya just in time regularexpressions

 https://www.linkedin.com/pulse/introduction-regular-expression-modern-c-vishal-chovatiya

 https://www.vishalchovatiya.com/

https://dzone.com/articles/introduction-to-regular-expression-with-modern-c 

https://www.vishalchovatiya.com/mastering-c-books-courses-tools-tutorials-blogs-communities/

regular expression codeproject Expresso - A Tool for Building and Testing Regular Expressions - CodeProject

regular expression  regular expressions just int in time compiler parser

https://blog.robertelder.org/regular-expression-visualizer/

The Regular Expression Visualizer, Simulator & Cross-Compiler Tool

https://www.tutorialspoint.com/compiler_design/compiler_design_regular_expressions.htm

regular expression 'just in time' regularexpressions

https://www.powergrep.com/regex.html

Algorithms

https://en.wikipedia.org/wiki/Regular_expression 

https://en.wikipedia.org/wiki/Comparison_of_regular_expression_engines

GOLD Parsing System - Regular Expressions

https://en.wikipedia.org/wiki/GOLD_(parser)

https://en.wikipedia.org/wiki/Category:Parser_generators

https://en.wikipedia.org/wiki/Comparison_of_parser_generators

https://en.wikipedia.org/wiki/List_of_programming_languages_by_type

https://en.wikipedia.org/wiki/ABAP


https://algs4.cs.princeton.edu/54regexp/

https://towardsdatascience.com/regular-expressions-clearly-explained-with-examples-822d76b037b4

https://zherczeg.github.io/sljit/pcre2_jit.html

https://www.freecodecamp.org/news/practical-regex-guide-with-real-life-examples/

https://www.thinktecture.com/en/net/dotnet-7-performance-regular-expressions/

https://v8.dev/blog/regexp-tier-up

https://en.delphipraxis.net/topic/3193-just-in-time-compiling-for-delphis-regular-expressions/

https://www.pcre.org/

https://blogs.sap.com/2020/12/10/modern-regular-expressions-in-abap-part-1-introducing-pcre/

Modern Regular Expressions in ABAP


 

regular expression 'just in time' regularexpressions
algorithm regular expressions grep nfa dfs digraph grep kmp
grep search regular expression

https://www.regexbuddy.com/create.html Easily Create or Build Regular Expression Patterns
RegexBuddy
https://www.regexbuddy.com › create
RegexBuddy's regex building blocks make it much easier to define regular ... Just click the Export button in RegexBuddy, and select the HTML format.

2022年6月23日 星期四

boost spirit lex ractical grammars parser Lex - Writing Lexical Analyzers Boost C++ Libraries

 https://valelab4.ucsf.edu/svn/3rdpartypublic/boost/libs/spirit/doc/html/spirit/lex/lexer_introduction.html

2022年5月28日 星期六

swig parsing llvm parsing Delphi2Cpp conversion C++ translating Pascal Delphi

https://github.com/FMXExpress/swig-delphi
https://blog.mbedded.ninja/programming/languages/python/python-swig-bindings-from-cplusplus/
https://code.google.com/archive/p/swig-gsoc/wikis/ProjectIdeas.wiki
https://en.delphipraxis.net/topic/940-delphi-compiler-need-to-be-opensourced/?page=4
https://swig-devel.narkive.com/qhi42Zwz/delphi-module
https://www.swig.org/
https://www.swig.org/Doc1.3/Extending.html
https://stackoverflow.com/questions/38884979/parsing-a-header-file-using-swig
https://stackoverflow.com/questions/10373935/pascal-to-c-converter
https://sites.google.com/a/chromium.org/dev/blink/webidl

https://en.wikipedia.org/wiki/Comparison_of_parser_generators
https://en.wikipedia.org/wiki/Source-to-source_compiler
https://en.wikipedia.org/wiki/Language_binding
https://wiki.freepascal.org/C_to_Pascal
https://wiki.lazarus.freepascal.org/User:Roozbeh
https://discourse.panda3d.org/t/help-with-swig/570

    Developer Tools Code Code Convertors
https://torry.net/pages.php?id=1518

llvm parsing  pascal

https://intel.github.io/llvm-docs/clang_doxygen/ParseExprCXX_8cpp_source.html
https://forum.lazarus.freepascal.org/index.php?topic=43007.15
https://github.com/mladedav/mila-compiler
https://github.com/FrozenGene/LLVMPascalCompiler

https://aclanthology.org/people/p/pascal-denis/
http://www.eteks.com/jeks/en/doc/com/eteks/parser/PascalSyntax.html
https://www.freepascal.org/docs-html/user/userse62.html
https://en.wikipedia.org/wiki/Comparison_of_Pascal_and_C

https://www.codeproject.com/Articles/371453/Visual-AST-for-ANTLR-Generated-Parser-Output
https://github.com/RomanYankovsky/DelphiAST

https://www.texttransformer.com/Delphi2Cpp_en.html
http://ivan.vecerina.com/code/delphi2cpp/

https://www.codeproject.com/Articles/10115/Crafting-an-interpreter-Part-1-Parsing-and-Grammar
https://www.codeproject.com/Articles/10142/Crafting-an-interpreter-Part-2-The-Calc0-Toy-Langu
https://www.codeproject.com/Articles/10421/Crafting-an-interpreter-Part-3-Parse-Trees-and-Syn

2022年5月25日 星期三

Using Delphi’s Expressions Engine EXPR math parser library parsing evaluating expressions

https://blogs.embarcadero.com/using-delphis-expressions-engine/

https://github.com/torvalds/linux/blob/master/scripts/kconfig/expr.c 

https://beltoforion.de/en/muparser/

C++ Mathematical Expression Library (ExprTk) - By Arash

C library for parsing and evaluating simple expressions.

 evaluating  expressions

 https://stackoverflow.com/questions/1326258/mathematical-expression-parser-in-delphi

 https://github.com/Crownie88/Delphi-mathematic-expression-parser/blob/master/MathExpParser.pas

2022年5月21日 星期六

VIRT interpreter TSymbolTable ast TREE

Language - 演算法筆記
https://web.ntnu.edu.tw/~algo/
https://web.ntnu.edu.tw/~algo/Language.html

https://sourcemaking.com/design_patterns/interpreter/delphi

https://docs.python.org/zh-tw/3.7/library/language.html
https://docs.python.org/3.7/library/parser.html
Python 语言服务
Python 提供了许多模块来帮助使用 Python 语言。 这些模块支持标记化、解析、语法分析、字节码反汇编以及各种其他工具。

 JavaCC Interpreter (AST to Symbol Table) 

https://ruslanspivak.com/lsbasi-part1/

AST interpreter Backus–Naur Form syntax tree

Introduction to AST manipulation in ROSE
Abstract Syntax Trees
https://ix.cs.uoregon.edu/~norris/pat/index.cgi?n=Main.ROSEIntro

Presentation on theme: "Programming Languages 2nd edition Tucker and Noonan"— Presentation transcript:
https://slideplayer.com/slide/5039873/

https://staff.csie.ncu.edu.tw/chia/Course/Compiler/lexparse2.html
     Catalog of Compiler Construction Tools
Lexer and Parser Generators Compiler Construction Kits

https://www.sigmdel.ca/michel/program/delphi/parser/parser1_en.html
Part 1 of Parsing and Evaluating Mathematical Expressions
   building parsers  using Pascal or Delphi JEDI Code Library (JCL)’s unit JclExprEval.pas, Renate Schaaf’s TExpress TParser Renate Schaaf, Alin Flaider and Stefan Hoffmeister or symbolic.pas by Marco van de Voort.

parsing code scanner interpreter   sequence  terms separated

Behavioral.State.Pattern (Delphi Sample) Intent      Allow an object to alter its behavior when its internal state changes. The object will appear to change its class.     An object-oriented state machine     wrapper + polymorphic wrappee + collaboration

character table parsing integer digit number  Integer  floating-point types  Data Types
https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node189.html

使用巴科斯範式(BNF/EBNF)定義語言 https://hackmd.io/@ShenTengTu/HJzCM3aDr

The Asf+Sdf Meta-Environment: A Component-Based Language Development Environment
https://www.sciencedirect.com/science/article/pii/S1571066104809174?via%3Dihub
https://eelcovisser.org/research/#ASF+SDF
https://www2.cs.sfu.ca/~cameron/Teaching/384/99-3/regexp-plg.html
https://github.com/cheminfo/sdf-parser

Backus Naur Form Regex BNF Grammar  Regular Expressions 

https://medium.com/@chetcorcos/introduction-to-parsers-644d1b5d7f3d

https://github.com/eatkins/tree-sitter-ebnf-generator

Concret Syntax Tree (CST)  Abstract Syntax Tree (AST)  CST exact parsed tree representation
https://en.wikipedia.org/wiki/Context-free_grammar
https://pyfound.blogspot.com/2020/04/replacing-cpythons-parser-python.html

tree sitter algorithm  Tree-sitter is a parser generator tool and an incremental parsing library. It can build a concrete syntax tree for a source file and efficiently update the syntax tree as the source file is edited.
https://tree-sitter.github.io/tree-sitter/
https://rustrepo.com/repo/tree-sitter-tree-sitter
https://archive.casouri.cat/note/2021/emacs-tree-sitter/index.html
https://lists.gnu.org/archive/html/emacs-devel/2022-01/msg00410.html


https://docs.revenera.com/fne/2021_09/adminguide/content/helplibrary/Model_Definition_Grammar_and_Syntax_EBNF.htm

https://en.wikipedia.org/wiki/Category:Parsing_algorithms
Parsing algorithms
Top-down        LL Recursive descent https://en.wikipedia.org/wiki/LL_parser
        Tail recursive Pratt parser
Bottom-up   
    Precedence
        Simple Operator
            Shunting-yard Bounded-context LR https://en.wikipedia.org/wiki/LR_parser
        Simple Look-ahead Canonical Generalized CYK Recursive ascent Shift-reduce
Mixed, other   
    Combinator Chart Earley https://en.wikipedia.org/wiki/Earley_parser
Related topics   
    PEG Definite clause grammar Deterministic parsing Dynamic programming Memoization Parser generator
        LALR Parse tree AST Scannerless parsing History of compiler construction Comparison of parser generators

https://en.wikipedia.org/wiki/GLR_parser
https://en.wikipedia.org/wiki/Category:Parsing_algorithms
https://en.wikipedia.org/wiki/LALR_parser
https://en.wikipedia.org/wiki/Earley_parser

Context-Free parsers  GLL Syntax LALR  Left corner parser  LL  LR GLR

深入淺出教你寫編譯器(Compiler)  https://jaceju.net/simple-compiler/

a compiler is a program that can read a program in one language - the source language - and translate it into an equivalent program in another language - the target language
Finite-state machine Scanner Semantic analysis
https://hackmd.io/@ComputerScienceNote/BJLyuNi6D

2022年5月19日 星期四

word relation map dictionary thesaurus Associations

 https://trishhopkinson.com/2014/12/03/need-a-word-association-generator-these-are-free-and-better-than-your-average-thesaurus/

 https://visuwords.com/

https://wordassociations.net/en 

https://graphwords.com/

https://www.leydesdorff.net/words/

https://link.springer.com/article/10.3758/s13428-019-01208-2

https://www.isko.org/cyclo/thesaurus

https://eadh.org/projects/historical-thesaurus-english

https://www.thesaurus.com/browse/association

 

  small smaller strong stronger Comparative Superlative Adjectives

https://www.perfect-english-grammar.com/adjectives-comparative-and-superlative.html

https://www.charlesdowdy.me/%E6%AF%94%E8%BC%83%E7%B4%9A%E6%9C%80%E9%AB%98%E7%B4%9A%E5%96%AE%E5%AD%97%E8%A1%A8/

synonyms Opposite adjective

 

 https://englishgrammarhere.com/adjectives/comparative-and-superlative-adjectives-100-examples-and-exercises/

Comparative and Superlative Adjectives

color type Color Name List thesaurus

 https://graf1x.com/list-of-colors-with-color-names/

https://www.ncl.ucar.edu/Document/Graphics/named_colors.shtml 

https://en.wikipedia.org/wiki/List_of_colors:_A%E2%80%93F

Colors in alphabetical order A–F

2022年3月8日 星期二

pascal state machine delphi SCRIPT TFPExpressionParser Regular Expression Parser Regular Expression mathematical

 pascal state machine delphi SCRIPT  TFPExpressionParser Regular Expression

  Parser Regular Expression mathematical

https://wiki.freepascal.org/How_To_Use_TFPExpressionParser 

https://wiki.freepascal.org/FPSpreadsheet_tutorial:_Writing_a_mini_spreadsheet_application

pascal script interpreter

torry Components Science Expressions

https://torry.net/pages.php?id=307

http://www.gobestcode.com/html/mathparser.html

https://en.wikipedia.org/wiki/Pascal_(programming_language)

2021年12月20日 星期一

use external fonts font directly from resources in Delphi Resource Compiler brcc32 MSBuild

 use external fonts font directly from resources in Delphi
AddFontMemResourceEx
https://docs.microsoft.com/zh-tw/windows/win32/api/wingdi/nf-wingdi-addfontmemresourceex?redirectedfrom=MSDN
https://docs.microsoft.com/zh-tw/windows/win32/api/wingdi/nf-wingdi-addfontresourcea?redirectedfrom=MSDN
https://docs.microsoft.com/zh-tw/windows/win32/api/wingdi/nf-wingdi-addfontresourceexa?redirectedfrom=MSDN
https://docs.microsoft.com/zh-tw/windows/win32/api/wingdi/nf-wingdi-addfontmemresourceex?redirectedfrom=MSDN
https://sourceforge.net/projects/jvcl/
 JVCL's TjvDataEmbedded AddFontResource
https://docwiki.embarcadero.com/RADStudio/Sydney/en/Step_3_-_Add_Style-Resources_as_RCDATA_(Delphi)
Step 3 - Add Style-Resources as RCDATA (Delphi)


procedure TForm1.FormCreate(Sender: TObject) ;
begin
  AddFontResource('c:\FONTS\MyFont.TTF') ;
  SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0) ;
end;

//Before application terminates we must remove our font:
procedure TForm1.FormDestroy(Sender: TObject) ;
begin
  RemoveFontResource('C:\FONTS\MyFont.TTF') ;
  SendMessage(HWND_BROADCAST, WM_FONTCHANGE, 0, 0) ;
end;
https://stackoverflow.com/questions/2984474/embedding-a-font-in-delphi
https://stackoverflow.com/questions/36224624/loading-font-from-resource-file

TResourceStream AddFontResource WM_FONTCHANGE message
   ResStream : tResourceStream;
   FontsCount : integer;
   hFont : tHandle;
 
   ResStream := tResourceStream.Create(hInstance, ResourceName, RT_RCDATA);
   hFont := AddFontMemResourceEx(ResStream.Memory, ResStream.Size, nil, @FontsCount);
   result := (hFont <> 0);
   ResStream.Free();
 

function LoadResourceFontByName( const ResourceName : string; ResType: PChar ) : Boolean;
var
  ResStream : TResourceStream;
  FontsCount : DWORD;
begin
  ResStream := TResourceStream.Create(hInstance, ResourceName, ResType);
  try
    Result := (AddFontMemResourceEx(ResStream.Memory, ResStream.Size, nil, @FontsCount) <> 0);
  finally
    ResStream.Free;
  end;
end;

function LoadResourceFontByID( ResourceID : Integer; ResType: PChar ) : Boolean;
var
  ResStream : TResourceStream;
  FontsCount : DWORD;
begin
  ResStream := TResourceStream.CreateFromID(hInstance, ResourceID, ResType);
  try
    Result := (AddFontMemResourceEx(ResStream.Memory, ResStream.Size, nil, @FontsCount) <> 0);
  finally
    ResStream.Free;
  end;
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  if LoadResourceFontByName('MyFont1', RT_RCDATA) then
    Label1.Font.Name := 'My Font Name 1';

  if LoadResourceFontByID(2, RT_FONT) then
    Label2.Font.Name := 'My Font Name 2';
end;

LoadResourceFontByName
delphi add font resource file LoadResourceFontByName
[Solved] Embedding a font in delphi - Code Redirect
https://www.sql.ru/forum/1254355/delphi-zagruzit-shrift-iz-resursov

{$R MyNewFont.RES}
...
procedure TForm1.FormCreate(Sender: TObject);
var
  MyResStream: TResourceStream;
begin
  MyResStream:=TResourceStream.Create(hInstance, 'MYFONT', RT_RCDATA);
  MyResStream.SavetoFile('Gen4.ttf');
  AddFontResource(PChar('Gen4.ttf'));
  SendMessage(HWND_BROADCAST,WM_FONTCHANGE,0,0);
  Label1.Font.Charset:=SYMBOL_CHARSET;
  Label1.Font.Size:=24;
  Label1.Font.Name:='Gen4';
end;

MSBuild.exe C:/Project1.dproj /t:Build /p:configutation=Debug /p:platform=Win32

https://docwiki.embarcadero.com/RADStudio/Sydney/en/BRCC32.EXE,_the_Resource_Compiler
Resource Compiler, brcc32.exe

https://delphi.cjcsoft.net/viewthread.php?tid=47317

{$R MyFont.res}
  Res : TResourceStream;
 
  Res := TResourceStream.Create(hInstance, 'MY_FONT', Pchar('ANYOL1'));
  Res.SavetoFile('Bauhs93.ttf');
  Res.Free;
  AddFontResource(PChar('Bauhs93.ttf'));
  SendMessage(HWND_BROADCAST,WM_FONTCHANGE,0,0);
 
  RemoveFontResource(PChar("Bauhs93.ttf"))
  SendMessage(HWND_BROADCAST,WM_FONTCHANGE,0,0);














2021年12月15日 星期三

Delphi Code Library Components Source Utilities tools wizard generator Coding

 https://github.com/fundamentalslib/fundamentals5

 

Fundamentals 5 Code Library for Delphi and FreePascal

Includes:

    String, DateTime and dynamic array routines
    Unicode routines
    Hash (e.g. SHA256, SHA512, SHA1, SHA256, MD5)
    Integer (e.g. Word128, Word256, Int128, Int256)
    Huge Word, Huge Integer
    Decimal (Decimal32, Decimal64, Decimal128, HugeDecimal and signed decimals)
    Random number generators
    Cryptographic (Symmetric: AES, DES, RC2, RC4; Asymmetric: RSA, Diffie-Hellman, Elliptic Curve)
    Data structures (array, dictionary and map classes)
    Mathematics (Rational number, complex number, vector, matrix, statistics)
    JSON parser
    Google protocol buffer parser, utilities and Pascal code generator
    Socket library (cross platform - Windows, Linux, OSX, iOS, Android)
    TLS Client
    TLS Server
    TCP Client
    TCP Server
    HTTP Client
    HTTP Server
    HTML Parser
    XML Parser
 

https://torry.net/pages.php?id=673

    Code Banks
    Comments Systems
    Syntax Tools
    Code Generators
    Other
    Code Convertors

Delphi Code Library  
Components
Source
Utilities
tools
wizard
generator
Coding

 

2015年12月12日 星期六

Compiler Design - Syntax Analysis 編譯器 設計 語法 分析 演算法

http://www.tutorialspoint.com/compiler_design/compiler_design_syntax_analysis.htm
Compiler Design - Syntax Analysis
編譯器 設計 語法 分析演算法
http://www.tutorialspoint.com/compiler_design/index.htm
Compiler Design Tutorial
Compiler Design - Home
Compiler Design - Overview
Compiler Design - Architecture
Compiler Design - Phases of Compiler
Compiler Design - Lexical Analysis
Compiler - Regular Expressions
Compiler Design - Finite Automata
Compiler Design - Syntax Analysis
Compiler Design - Types of Parsing
Compiler Design - Top-Down Parser
Compiler Design - Bottom-Up Parser
Compiler Design - Error Recovery
Compiler Design - Semantic Analysis
Compiler - Run-time Environment
Compiler Design - Symbol Table
Compiler - Intermediate Code
Compiler Design - Code Generation
Compiler Design - Code Optimization
Compiler Design Useful Resources
Compiler Design - Quick Guide
Compiler Design - Useful Resources
Compiler Design - Discussion
Selected Reading
Developer's Best Practices
Questions and Answers
Effective Resume Writing
HR Interview Questions
Computer Glossary

Who is Who


  • Compiler Design Tutorial
 PDF Version  Quick Guide  Resources  Job Search  Discussion
A compiler translates the code written in one language to some other language without changing the meaning of the program. It is also expected that a compiler should make the target code efficient and optimized in terms of time and space.

Compiler design principles provide an in-depth view of translation and optimization process. Compiler design covers basic translation mechanism and error detection & recovery. It includes lexical, syntax, lexical syntax  and semantic analysis as front end, and code generation and optimization as back-end. exposure to Assembly Programming x86 process code generation and optimization as back-end.
In Fix Post fix Postfix Reverse Polish notation


Audience

This tutorial is designed for students interested in learning the basic principles of compilers.Enthusiastic readers who would like to know more about compilers and those who wish to design a compiler themselves may start from here.

Prerequisites
This tutorial requires no prior knowledge of compiler design but requires basic understanding of at least one programming language such as C, Java etc.It would be an additional advantage if you have had prior exposure to Assembly Programming.

...

  • Syntax analysis or parsing is the second phase of a compiler. In this chapter, we shall learn the basic concepts used in the construction of a parser.
We have seen that a lexical analyzer can identify tokens with the help of regular expressions and pattern rules. But a lexical analyzer cannot check the syntax of a given sentence due to the limitations of the regular expressions. Regular expressions cannot check balancing tokens, such as parenthesis. Therefore, this phase uses context-free grammar (CFG), which is recognized by push-down automata.



2015年12月5日 星期六

RTTI Advanced Run Time Type Identification



Nim Standard Library - Pure libraries do not depend on any external *.dll or lib*.so binary while impure libraries do. A wrapper is an impure library that is a very low-level interface to a C library.一個純淨無依靠任何DLL或LIB檔案的超低階C函式庫


機歪 難用 apple mac ox cocoa swift Objective-C RTTI RTTI

2015年11月10日 星期二

程式語言 比較 , 程式設計的 實用讀本 網站 Comparison Programming Chrestomathy Rosetta Code Programming Languages commonly used features in a side-by-side format

https://en.wikipedia.org/wiki/Comparison_of_programming_languages
http://www.jvoegele.com/software/langcomp.html
programming chrestomathy

 Programming Chrestomathy

A chrestomathy is a sample of a given text in two or more different languages, for the purpose of teaching the different grammars and idioms.
m-w.com says
 1 : a selection of passages used to help learn a language
 2 : a volume of selected passages or stories of an author


Chrestomathy 

Chrestomathy (/krɛsˈtɒməθi/ kres-tom-ə-thee; from the Ancient Greek χρηστομάθεια “desire of learning” = χρηστός “useful” + μανθάνω “learn”) is a collection of choice literary passages, used especially as an aid in learning a subject.

簡單來說,就是 程式設計的 實用讀本


Rosetta Code is a programming chrestomathy site.

 The idea is to present solutions to the same task in as many 

Rosetta Code 是個 “ 程式設計的 實用讀本 ” 網站,發想是 展示 方案(寫程式碼的方案), 介紹 可執行的許多方法,與語言 ,展現更多語言的不同語區別,

different languages as possible, to demonstrate how languages are similar and different, 

and to aid a person with a grounding in one approach to a problem in learning another.

提供個人一個整體性的學習

 Rosetta Code currently has 780 tasks, 175 draft tasks, and is aware of 595 languages, 

though we do not (and cannot) have solutions to every task in every language.

現在有超多項目與語言的資料提供

實作 Unux 目錄指令 ls

實作 資料驗證 MD5
The purpose of this task to code and validate an implementation of the MD5 Message Digest Algorithm by coding the algorithm directly (not using a call to a built-in or external hashing library). 

http://hyperpolyglot.org

Hyperpolyglot

Programming Languages
commonly used features in a side-by-side format

Scripting Languages I:Node.js, PHP, Python, Ruby
Scripting Languages II:Perl, Lua, Groovy
GUI Scripting:JavaScript, Smalltalk, Tcl, AutoHotkey
Command Line Interpreters:POSIX Shell, Cmd.exe, PowerShell
Forth and PostScript:Forth, PostScript
Prolog and Erlang:Prolog, Erlang
Lisp Dialects:Common Lisp, Racket, Clojure, Emacs Lisp
C and Go:C, Go
OO C Style Languages:C++, Objective-C, Java, C#
Rust, Swift, Scala:Rust, Swift, Scala
TypeScript, Dart, Hack:TypeScript, Dart, Hack
Pascal Style Languages:Pascal, Ada, PL/pgSQL
ML Dialects and Haskell:SML, OCaml, F#, Haskell
Numerical Analysis & Statistics:MATLAB, R, NumPy
Computer Algebra Software:Mathematica, SymPy, GAP, Pari/GP
Gnuplot and GLPK:Gnuplot, GLPK
Fortran and APL:Fortran, APL
Relational Data Languages:SQL, Awk, Pig

Programming Tools

Unix Shells:Bash, Fish, Ksh, Tcsh, Zsh
Text Mode Editors:Vim, Emacs, Nano
Version Control:Git, Mercurial
Build Tools:Make, Rake, Ant, MSBuild
Terminal Multiplexers:Screen, Tmux
Relational Databases:PostgreSQL, MySQL, SQLite
Lightweight Markup:Markdown, reStructuredText, MediaWiki, AsciiDoc, Org-mode
2D Vector Graphics:PostScript, Processing, SVG

http://eqcode.com/wiki/Main_PageEqcode aims to show "equivalent codes for all languages," so it provides an index of common languages with drill-downs to specific concepts or tasks, such as removing a specific element from an array or constructing a regex to match an email address. The breadth of languages is decent, but the concepts addressed are somewhat scattershot, and it isn't updated often; 
equivalent code wiki - eqcode.com
Equivalent codes for all languages!
2015-11-10 07:32 (UTC)


Languages


http://cw.tactileint.com
CrossWise is a quick reference for computer languages used in website programming. Specifically, it compares languages side-by-side, feature-by-feature, so that you can understand the differences in syntax and concepts between languages so that you can port your site, or yourself, more quickly and with less frustration.
We're still early in the project so bear with me. Send too allan att tactileint daught calm and tell me what you think.
他是提供你一個 電腦語言 的 快速手冊,比較 電腦語言 之間 的特色
http://algpedia.dcc.ufrj.br




Turn your nose up at Dart and instead smell the CoffeeScript



PLEAC - Programming Language Examples Alike Cookbook

Status

The latest status is accessible from here (the Perl part is the Solutions from the Perl Cookbook, the rest is PLEAC contents):

Related links

These are interesting projects on the same topic (thanks to Pixel):
http://www.westnet.com/mirrors/99bottles/beer.html