This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE LambdaCase #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
import Control.Monad | |
import Control.Monad.Trans.Class | |
import Control.Monad.Trans.Except | |
import Control.Monad.Trans.State | |
import Control.Monad.Trans.Writer.CPS | |
import Data.Foldable | |
import qualified Data.IntMap as IM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import re | |
NUMBER = re.compile(r'[0-9]+(\.[0-9]+)?') | |
def tokenize(s): | |
orig_str = s | |
while len(s) > 0: | |
m = NUMBER.match(s) | |
if m: |
OlderNewer