Skip to content
Snippets Groups Projects
Unverified Commit 2f76616d authored by Samuel Chassot's avatar Samuel Chassot
Browse files

update readme lab03, how to run lab

parent 05e5b70d
No related branches found
No related tags found
No related merge requests found
...@@ -135,6 +135,16 @@ parser interprets precedence and associativity. You can use it to test ...@@ -135,6 +135,16 @@ parser interprets precedence and associativity. You can use it to test
your parser, and it will also be used during our testing to compare the your parser, and it will also be used during our testing to compare the
output of your parser with the reference parser. output of your parser with the reference parser.
### Running your code
To debug your parser, you will like to run your code to see the produced trees, or see the counter examples produced by scallion if your grammar is not LL(1). To do so, you can run the following command:
```bash
sbt "run --printTrees <path-to-file>"
```
This will run the compiler pipeline up to the parser and print the nominal trees produced by your parser. This output is the same as the one in the test resources for the test cases.
## Skeleton ## Skeleton
As usual, you can find the skeleton in the git repository. This lab As usual, you can find the skeleton in the git repository. This lab
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment