compiler: Parser Compile Should Match Compile Protocol
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
@@ -175,7 +175,7 @@ public struct SpecialCompilers {
|
||||
static func CompileParserBody(
|
||||
withName name: Common.Identifier, withParameters parameters: ParameterList, node: Node,
|
||||
withContext context: CompilerContext
|
||||
) -> Result<(P4Lang.Parser, CompilerContext)> {
|
||||
) -> Result<P4Lang.Parser> {
|
||||
|
||||
var parser = P4Lang.Parser(withName: name, withParameters: parameters)
|
||||
|
||||
@@ -206,7 +206,7 @@ public struct SpecialCompilers {
|
||||
return .Error(error)
|
||||
}
|
||||
|
||||
return Result.Ok((parser, current_context))
|
||||
return Result.Ok(parser)
|
||||
}
|
||||
|
||||
public struct ProgramCompiler {
|
||||
|
||||
Reference in New Issue
Block a user