1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 22:31:36 +03:00

📝 AST.

This commit is contained in:
Rob Rix 2017-04-24 10:18:42 -04:00
parent 7868979cee
commit 59b7478caf

View File

@ -100,6 +100,7 @@ type Location = Record '[Info.Range, Info.SourceSpan]
-- | The label annotating a node in the AST, specified as the pairing of its symbol and location information.
type Node grammar = Record '[grammar, Info.Range, Info.SourceSpan]
-- | An abstract syntax tree in some 'grammar', with symbols and location information annotating each node.
type AST grammar = Rose (Node grammar)