mirror of
https://github.com/github/semantic.git
synced 2025-01-02 04:10:29 +03:00
remove symbol
This commit is contained in:
parent
1764aeb492
commit
062ad8b083
@ -253,8 +253,6 @@ runString = raiseHandler $ runStringC . interpret
|
|||||||
class Show value => AbstractIntro value where
|
class Show value => AbstractIntro value where
|
||||||
-- | Construct a self-evaluating symbol value.
|
-- | Construct a self-evaluating symbol value.
|
||||||
-- TODO: Should these be interned in some table to provide stronger uniqueness guarantees?
|
-- TODO: Should these be interned in some table to provide stronger uniqueness guarantees?
|
||||||
symbol :: Text -> value
|
|
||||||
|
|
||||||
-- | Construct an abstract regex value.
|
-- | Construct an abstract regex value.
|
||||||
regex :: Text -> value
|
regex :: Text -> value
|
||||||
|
|
||||||
|
@ -100,7 +100,6 @@ instance AbstractHole Abstract where
|
|||||||
instance AbstractIntro Abstract where
|
instance AbstractIntro Abstract where
|
||||||
integer _ = Abstract
|
integer _ = Abstract
|
||||||
float _ = Abstract
|
float _ = Abstract
|
||||||
symbol _ = Abstract
|
|
||||||
regex _ = Abstract
|
regex _ = Abstract
|
||||||
rational _ = Abstract
|
rational _ = Abstract
|
||||||
hash _ = Abstract
|
hash _ = Abstract
|
||||||
|
@ -183,7 +183,6 @@ instance AbstractHole (Value term address) where
|
|||||||
instance (Show address, Show term) => AbstractIntro (Value term address) where
|
instance (Show address, Show term) => AbstractIntro (Value term address) where
|
||||||
integer = Integer . Number.Integer
|
integer = Integer . Number.Integer
|
||||||
float = Float . Number.Decimal
|
float = Float . Number.Decimal
|
||||||
symbol = Symbol
|
|
||||||
rational = Rational . Number.Ratio
|
rational = Rational . Number.Ratio
|
||||||
regex = Regex
|
regex = Regex
|
||||||
|
|
||||||
|
@ -346,7 +346,6 @@ instance AbstractHole Type where
|
|||||||
instance AbstractIntro Type where
|
instance AbstractIntro Type where
|
||||||
integer _ = Int
|
integer _ = Int
|
||||||
float _ = Float
|
float _ = Float
|
||||||
symbol _ = Symbol
|
|
||||||
regex _ = Regex
|
regex _ = Regex
|
||||||
rational _ = Rational
|
rational _ = Rational
|
||||||
hash = Hash
|
hash = Hash
|
||||||
|
@ -215,7 +215,7 @@ instance Ord1 SymbolElement where liftCompare = genericLiftCompare
|
|||||||
instance Show1 SymbolElement where liftShowsPrec = genericLiftShowsPrec
|
instance Show1 SymbolElement where liftShowsPrec = genericLiftShowsPrec
|
||||||
|
|
||||||
instance Evaluatable SymbolElement where
|
instance Evaluatable SymbolElement where
|
||||||
eval _ _ (SymbolElement s) = pure (symbol s)
|
eval _ _ (SymbolElement s) = string s
|
||||||
|
|
||||||
instance Tokenize SymbolElement where
|
instance Tokenize SymbolElement where
|
||||||
tokenize = yield . Run . symbolContent
|
tokenize = yield . Run . symbolContent
|
||||||
|
Loading…
Reference in New Issue
Block a user