From 92b2b2e107ba3cb1402afe112f97f22e7a8e74c8 Mon Sep 17 00:00:00 2001 From: yui-knk Date: Fri, 6 Oct 2023 23:56:51 +0900 Subject: [PATCH] Add "How to generate new_parser.rb" --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index fe109712..212d77dc 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,15 @@ This also requires Lrama to be able to run with only default gems and bundled ge 1. Install Lrama 2. Run `make YACC=lrama` +## How to generate new_parser.rb + +```shell +$ rake build:racc_parser +``` + +`new_parser.rb` is generated from `parser.y` by Racc. +Run the rake command when you update `parser.y` then commit changes of both files. + ## Release flow 1. Update `Lrama::VERSION`