From 2e971cdcbbeb543ab6b66dc8558644c1f4a80670 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 11 Aug 2018 10:11:58 +0300 Subject: Use dict for AST --- crates/libsyntax2/src/grammar.ron | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'crates/libsyntax2/src/grammar.ron') diff --git a/crates/libsyntax2/src/grammar.ron b/crates/libsyntax2/src/grammar.ron index 06a4eb6a7..650f72212 100644 --- a/crates/libsyntax2/src/grammar.ron +++ b/crates/libsyntax2/src/grammar.ron @@ -213,21 +213,17 @@ Grammar( "SELF_PARAM", "ARG_LIST", ], - ast: [ - ( - kind: "FILE", + ast: { + "File": ( collections: [ - ["functions", "FUNCTION"] + ["functions", "Function"] ] ), - ( - kind: "FUNCTION", + "Function": ( options: [ - ["name", "NAME"] + ["name", "Name"] ] ), - ( - kind: "NAME" - ), - ] + "Name": (), + }, ) -- cgit v1.2.3