From: helly Date: Mon, 17 Apr 2006 19:47:37 +0000 (+0000) Subject: - After some comments from Lynn Allan X-Git-Tag: 0.13.6~367 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=baf35ef24da82857382cce3cec2cb6b504ee4eac;p=re2c - After some comments from Lynn Allan --- diff --git a/lessons/001_upn_calculator/readme.txt b/lessons/001_upn_calculator/readme.txt index 321b65e9..81377d75 100755 --- a/lessons/001_upn_calculator/readme.txt +++ b/lessons/001_upn_calculator/readme.txt @@ -1,7 +1,7 @@ re2c lesson 001_upn_calculator, (c) M. Boerger 2006 -This lesson gets you started with re2c. In the end you will have an easy UPN -calculator for use at command line. +This lesson gets you started with re2c. In the end you will have an easy RPN +(reverse polish notation) calculator for use at command line. You will learn about the basic interface of re2c when scanning input strings. How to detect the end of the input and use that to stop scanning in order to @@ -49,7 +49,7 @@ switch also contains the -s behavior. ------------------------------------------------------------------------------- -For windows users Lynn Allen provided some additional stuff to get you started +For windows users Lynn Allan provided some additional stuff to get you started in the Microsoft world. This addon resides in the windows subdirectory and gives you something to expereiment with. The code in that directory is based on the first step and has the following changes: @@ -76,3 +76,8 @@ as strncmp for this test and can probably be made significantly faster. * If you want to build the other steps of this lesson using windows tools simply copy the *.re files into the windows directory as main.re and rebuild. + + +------------------------------------------------------------------------------- +Sidenote: UPN is the german translation of RPN, somehow hardcoded into the +authors brain :-) diff --git a/lessons/001_upn_calculator/windows/main.b.c b/lessons/001_upn_calculator/windows/main.b.c index cbface7e..71ea696d 100755 --- a/lessons/001_upn_calculator/windows/main.b.c +++ b/lessons/001_upn_calculator/windows/main.b.c @@ -1,6 +1,6 @@ /* Generated by re2c */ #line 1 "main.b.re" -/* re2c lesson 001_upn_calculator, main.b.re, (c) M. Boerger 2006 */ +/* re2c lesson 001_upn_calculator, main.b.re, (c) M. Boerger, L. Allan 2006 */ #line 43 "main.b.re" #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers diff --git a/lessons/001_upn_calculator/windows/main.b.re b/lessons/001_upn_calculator/windows/main.b.re index f782ec9c..efee5d88 100755 --- a/lessons/001_upn_calculator/windows/main.b.re +++ b/lessons/001_upn_calculator/windows/main.b.re @@ -1,4 +1,4 @@ -/* re2c lesson 001_upn_calculator, main.b.re, (c) M. Boerger 2006 */ +/* re2c lesson 001_upn_calculator, main.b.re, (c) M. Boerger, L. Allan 2006 */ /*!ignore:re2c - basic interface for string reading