This is the sixth part of the YAUL series. For your convenience you can find other parts in the table of contents in Part 1 — Introduction We continue developing custom language on .NET platform using LINQ expressions. Today we are going to implement conditional operator. Grammar We start with PLY grammar. Code for if … Continue reading Yet Another Useless Language Part 6 — If
Tag: YAUL
Yet Another Useless Language Part 5 — Variables
This is the fifth part of the YAUL series. For your convenience you can find other parts in the table of contents in Part 1 — Introduction Hi! Today we are going to add variables support to our language. Introduction In previous parts we saw implementation of variable type for storing values and performing operations. … Continue reading Yet Another Useless Language Part 5 — Variables
Yet Another Useless Language Part 4 — Compiler
This is the fourth part of the YAUL series. For your convenience you can find other parts in the table of contents in Part 1 — Introduction Today we are going to take a look at the basics of compilation process. AST In order to execute code we are going to parse source code using … Continue reading Yet Another Useless Language Part 4 — Compiler
Yet Another Useless Language Part 3 — Variables
This is the third part of the YAUL series. For your convenience you can find other parts in the table of contents in Part 1 — Introduction Today we will implement class for holding values in YAUL language Requirements We do not have static typing, so every variable will need to be able to store … Continue reading Yet Another Useless Language Part 3 — Variables
Yet Another Useless Language Part 2 — Grammar
This is the second part of the YAUL series. For your convenience you can find other parts in the table of contents in Part 1 — Introduction Last time we described features of a language we are going to write. Today we are going to define its grammar using EBNF-like notation. Notation We will describe … Continue reading Yet Another Useless Language Part 2 — Grammar