https://github.com/RomanYankovsky/DelphiAST
Abstract syntax tree builder for Delphi
https://github.com/RomanYankovsky/DelphiAST
delphi pascal syntax-tree
Last synced: 26 days ago
JSON representation
Abstract syntax tree builder for Delphi
- Host: GitHub
- URL: https://github.com/RomanYankovsky/DelphiAST
- Owner: RomanYankovsky
- License: mpl-2.0
- Created: 2014-09-14T09:35:31.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-12-26T17:32:49.000Z (about 2 years ago)
- Last Synced: 2024-02-01T15:03:13.944Z (almost 2 years ago)
- Topics: delphi, pascal, syntax-tree
- Language: Pascal
- Homepage:
- Size: 919 KB
- Stars: 252
- Watchers: 51
- Forks: 119
- Open Issues: 97
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-pascal - Abstract Syntax Tree Builder
README
[](https://github.com/RomanYankovsky/DelphiAST) [](https://github.com/RomanYankovsky/DelphiAST) [](https://github.com/RomanYankovsky/DelphiAST)
### Abstract Syntax Tree Builder for Delphi
With DelphiAST you can take real Delphi code and get an abstract syntax tree. One unit at time and without a symbol table though.
FreePascal and Lazarus compatible.
#### Sample input
```delphi
unit Unit1;
interface
uses
Unit2;
function Sum(A, B: Integer): Integer;
implementation
function Sum(A, B: Integer): Integer;
begin
Result := A + B;
end;
end.
```
#### Sample outcome
```xml
```
#### Copyright
Copyright (c) 2014-2020 Roman Yankovsky (roman@yankovsky.me) et al
DelphiAST is released under the Mozilla Public License, v. 2.0
See LICENSE for details.