Vote UpVote

Writing a Simple DSL Compiler with Delphi [1. The Language]

The Delphi Geek – Part 1: The LanguageThis article provides an informal definition of a simple language (a.k.a. "The Language") I am writing a compiler for. If you are new to this series, I would recommend to start reading with this post.Let's start with a simple example which calculates an i-th Fibonacci number. fib(i) {   if i < 3 {     return 1   } else {     return fib(i-2) + fib(i-1)   } }The code is quite simple. First two numbers in a Fibonacci sequence are 1 and every other Fibonacci number is a sum of previous two in the sequence.Read more »--- Published under the Creative Commons ...
Favorite? Off-Topic? Primož Gabrijelčič @ 2017-08-25 12:50


Visits: 767
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)