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

📝 Node.

This commit is contained in:
Rob Rix 2017-04-24 10:18:02 -04:00
parent ec65a199dc
commit 7868979cee

View File

@ -96,6 +96,8 @@ data Rose a = Rose { roseValue :: !a, roseChildren :: ![Rose a] }
-- | A location specified as possibly-empty intervals of bytes and line/column positions.
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]
type AST grammar = Rose (Node grammar)