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

A.M.D.G.

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

Installation

The download is a compressed file, for example:

LRSTAR.11.0.001.zip

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

C:\LRSTAR

You will get a directory with the name:

LRSTAR.11.0.001

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
workspace.vcxproj
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.