diff --git a/src/Bergamot/Parser.elm b/src/Bergamot/Parser.elm index 01467ab..09933e9 100644 --- a/src/Bergamot/Parser.elm +++ b/src/Bergamot/Parser.elm @@ -10,9 +10,6 @@ import Set exposing (Set) reserved : Set String reserved = Set.fromList ["section"] -intLit : Parser Int -intLit = Parser.int - strLit : Parser String strLit = let @@ -78,7 +75,13 @@ term = Parser.lazy (\() -> Parser.oneOf |= name , Parser.backtrackable <| Parser.succeed Var |= variable - , Parser.succeed IntLit |= intLit + , Parser.number + { int = Just IntLit + , hex = Nothing + , octal = Nothing + , binary = Nothing + , float = Just FloatLit + } , Parser.succeed StringLit |= strLit ])