fix(library/init/lean/parser/reader/term): add missing file

This commit is contained in:
Sebastian Ullrich 2018-07-20 18:44:37 +02:00
parent a91de26c90
commit 218af640bb

View file

@ -0,0 +1,26 @@
/-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich
Term-level readers and macros
-/
prelude
import init.lean.parser.reader.token
namespace lean.parser
namespace reader
open combinators
def hole := {macro . name := `hole}
def hole.reader : reader :=
node hole [symbol "_"]
def term.reader :=
any_of [
hole.reader
]
end reader
end lean.parser