compiler: Refactor Compiler To Remove Ambiguities
There were significant overlaps in the names of data structures between the compiler and the language that made it necessary to litter the code with P4Lang.xxxx. This refactor removes that requirement in most places (Parser is ambiguous wherever TreeSitter is used -- cannot avoid that!) Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
@@ -284,8 +284,8 @@ public struct CodeGenerator: LanguageVisitor {
|
||||
return .Ok(c)
|
||||
}
|
||||
public func visit(
|
||||
_ parser_state: P4Lang.InstantiatedParserState, _ c: P4Lang.VisitorContext<Generated>
|
||||
) -> Common.Result<P4Lang.VisitorContext<Generated>> {
|
||||
_ parser_state: InstantiatedParserState, _ c: VisitorContext<Generated>
|
||||
) -> Common.Result<VisitorContext<Generated>> {
|
||||
return .Ok(c)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user