RomanYankovsky / DelphiAST

Abstract syntax tree builder for Delphi
Mozilla Public License 2.0
273 stars 117 forks source link

binary serialization/deserialization #203

Closed gabr42 closed 7 years ago

gabr42 commented 7 years ago

Hi there!

I wrote a class that serializes AST to a stream and deserializes it back.

Also modified: added TSyntaxTreeWriter.ToBinary which forwards request to the binary serializer.

Currently the code probably works only in Delphi as it uses a TDictinary<>. Other than that there should be no FPC incompatibilities.