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:
@ -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);
|
||||
|
Reference in New Issue
Block a user