hdl.ast: implement Initial.
This is the last remaining part for first-class formal support.
This commit is contained in:
parent
40abaef858
commit
ed7e07c6c1
8 changed files with 68 additions and 16 deletions
|
|
@ -86,6 +86,9 @@ class _ValueCompiler(ValueVisitor):
|
|||
def on_Sample(self, value):
|
||||
raise NotImplementedError # :nocov:
|
||||
|
||||
def on_Initial(self, value):
|
||||
raise NotImplementedError # :nocov:
|
||||
|
||||
def on_Record(self, value):
|
||||
return self(Cat(value.fields.values()))
|
||||
|
||||
|
|
|
|||
|
|
@ -331,6 +331,9 @@ class _ValueCompiler(xfrm.ValueVisitor):
|
|||
def on_Sample(self, value):
|
||||
raise NotImplementedError # :nocov:
|
||||
|
||||
def on_Initial(self, value):
|
||||
raise NotImplementedError # :nocov:
|
||||
|
||||
def on_Record(self, value):
|
||||
return self(ast.Cat(value.fields.values()))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue