27 lines · 914 B · Haskell
RawDownload
-- |Quake VM data reader.module Read (readFrom) where import Call import TagParse -- |Reads Quake VM data from C source.readFrom :: [String] -> FilePath -> IO ()readFrom cflags source = do  tags <- getTags cflags source  mapM_ call [ b | Right t <- tags                 , b@Builtin{} <- tagData t                 ]  --print tags  where    call :: TagData -> IO ()    call t =      print $ callBuiltin t   -- builtins <- getBuiltins cflags source  -- mapM_ print $ sort [ (pretty . declType $ funDef, tagData t) | (row, funDef) <- toList builtins  --                                                              , Right t <- tags  --                                                              , row == (posRow . endPos $ t)  --                                                              ]  -- where  --   sort = sortBy $ \(_, Builtin{index = x}:_) (_, Builtin{index = y}:_) -> compare x y

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t