diff --git a/Sources/P4Lang/Parser.swift b/Sources/P4Lang/Parser.swift index 9917d0e..8d38b8c 100644 --- a/Sources/P4Lang/Parser.swift +++ b/Sources/P4Lang/Parser.swift @@ -107,7 +107,7 @@ public class ParserState: P4Type, P4Value, Equatable, CustomStringConvertible { } /// Instantiated Parser State -/// +/// /// A parser state is both a type and a value. The Instantiated /// Parser State is the base class for parser states that act more /// as a value than a type. diff --git a/Sources/P4Runtime/Parser.swift b/Sources/P4Runtime/Parser.swift index 222f0e5..03f4ca6 100644 --- a/Sources/P4Runtime/Parser.swift +++ b/Sources/P4Runtime/Parser.swift @@ -121,8 +121,10 @@ extension Parser: ParserExecution { public func execute(execution: ProgramExecution) -> (InstantiatedParserState, ProgramExecution) { var execution = execution.enter_scope() - execution = execution.declare(identifier: AsInstantiatedParserState(accept.state()).state, withValue: accept) - execution = execution.declare(identifier: AsInstantiatedParserState(reject.state()).state, withValue: reject) + execution = execution.declare( + identifier: AsInstantiatedParserState(accept.state()).state, withValue: accept) + execution = execution.declare( + identifier: AsInstantiatedParserState(reject.state()).state, withValue: reject) // Add initial values to the global scope if let initial = execution.initial_values() {