]> granicus.if.org Git - re2c/commitdiff
- After some comments from Lynn Allan
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Mon, 17 Apr 2006 19:47:37 +0000 (19:47 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Mon, 17 Apr 2006 19:47:37 +0000 (19:47 +0000)
lessons/001_upn_calculator/readme.txt
lessons/001_upn_calculator/windows/main.b.c
lessons/001_upn_calculator/windows/main.b.re

index 321b65e9aaa75756c781579373bb7eb0aa5a739e..81377d75a3be4e09e8958411424e672ab1784386 100755 (executable)
@@ -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 :-)
index cbface7eb94b0ae4a6eb13459ce3d304aa41b834..71ea696d08d6a7d516383530911f52c3107f9b00 100755 (executable)
@@ -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
index f782ec9cde23aaddd4084d6c8e2e4e5fe9e5861e..efee5d88afe744f3497a895775f79d67b8ce9f34 100755 (executable)
@@ -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