Johan Åhlgren

Creating a quiz web application in Delphi, part 2


Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

In a traditional desktop application, the application holds its own data and that data is available whenever we need to present it to the user. In a web application, the data is stored on the web server and the client…

Creating a quiz web application in Delphi, part 1


Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

While surfing the net the other day, I stumbled across a quiz that I decided to take. You know the kind – you are asked a question and you may choose one of typically four alternative answers. After a specific…

Project 1: Building the parse tree


Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Now that we have finished our tokenizer, we will look at the second task: building the parse tree. Once we have that, we can ask the tree if a set of strings are a valid match or not. More precisely,…

Project 1: Tokenization


Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

Our tokenizer will perform one task – it will take a sequence of characters and emit a sequence of tokens. We will build it using an input stream from which the source characters are fetched, and then implement specific methods…

Redirecting output from a batch file


Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

For the projects I plan to upload, I am currently creating a simple make file, in the form of a batch file, whose job is to build all my projects. I want it to execute the command-line compiler (currently Delphi’s,…

First project: parsing


Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118

Notice: A non well formed numeric value encountered in /www/webvol1/lw/n1mf7j21f9a4rkg/johanahlgren.se/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119

In this first project, we will look at two concepts that are vital to e.g. the compiler you use for writing programs; tokenizing and parsing. Let’s assume you work in an organization that keeps track of e.g. a large number…