LRSTAR: LR(*) parser generator for C++


Home Downloads Feedback Comparison Theoretical Documentation Contact
Acknowledgments Installation LRSTAR DFA Definitions


The download is a compressed file, for example:

Unzip this file to a directory (folder), such as:


You will get a directory with the name:


Inside this directory, you should have the following subdirectories:

bin   - executable programs
code   - generic parser & lexer code
doc   - documentation
project   - 5 or more projects

Visual Studio Setup

Step 1. Set the tabs setting to 3.

The source code was created with tabs set to 3. If you don't use tabs=3, the source code will look weird. Some people like 2 and others like 4. The tab setting should be part of the source code file, probably the last byte in the file. Afterall, word processors contain the formatting settings in the file, why can't source code have the tab setting in the file? Maybe 100 years from now, it will happen, maybe. Go to:

Tools / Options / Text Editor / All Languages / Tabs
Then set Tab size" to 3 and "Indent size" to 3.

Step 2. Set Read-Only Files NOT to Allow Editing.

Go to

Tools / Options / Environment / Documents
And unselect the 3rd little box from the top, which says:
[  ] Allow editing of read-only file; warn when attempt to save.

Make sure this is unchecked as shown above. Then you will not waste any time making changes to a file that was generated automatically. All generated files are read-only.

Getting Started

Go to the project Calc folder:

Go to:

LRSTAR / LRSTAR.11.0.001 / project / Calc
Open (double-click) the file name:
workspace.sln or
Do a:
Build / Build Solution
Then do a:
Debug / Start Debugging (f5) (if you have built the Debug version) or
Debug / Start Without Debugging (Ctrl+F5) (if you have built the Release version)
Now look at the "test.output.txt" file to see what happened. Good luck and have fun. In case of errors or problems, please send me an email and let me know what's not working or just ask a question.

(c) Copyright Paul B Mann 2020.  All rights reserved.