An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![](https://tokei.rs/b1/github/RomanYankovsky/DelphiAST?category=lines)](https://github.com/RomanYankovsky/DelphiAST) [![](https://tokei.rs/b1/github/RomanYankovsky/DelphiAST?category=code)](https://github.com/RomanYankovsky/DelphiAST) [![](https://tokei.rs/b1/github/RomanYankovsky/DelphiAST?category=files)](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.