2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-07-03 17:51:54 +00:00

Add verbose parameter to ZoneCodeGenerator instead of always being verbose in debug mode

This commit is contained in:
Jan
2019-09-27 22:57:58 +02:00
parent f9b7fa57c8
commit 49dfff1efe
10 changed files with 28 additions and 18 deletions

View File

@ -17,7 +17,7 @@ namespace ZoneCodeGenerator.Parsing
this.lexer = lexer;
}
public bool Parse()
public bool Parse(bool verbose = false)
{
while (!lexer.IsEndOfStream)
{
@ -27,7 +27,7 @@ namespace ZoneCodeGenerator.Parsing
{
foreach (var test in state.GetTests())
{
switch (test.PerformTest(state, lexer))
switch (test.PerformTest(state, lexer, verbose))
{
case TokenTestResult.Match:
lexer.SkipTokens(test.ConsumedTokenCount);