mirror of
https://github.com/grin-compiler/grin.git
synced 2024-09-11 07:25:28 +03:00
Minor fixes
Removed some dead code Added newlines
This commit is contained in:
parent
cc4f2716ff
commit
03c4c4c58a
@ -140,17 +140,8 @@ printGrinWithOpt :: Parser PipelineStep
|
||||
printGrinWithOpt = flip PrintGrin id <$> option (maybeReader maybeRenderingOpt)
|
||||
( long "print-grin"
|
||||
<> help "Print the actual grin code with a given rendering option [simple | with-externals]"
|
||||
-- <> showDefaultWith (camelToDashed . show)
|
||||
-- <> value Simple
|
||||
<> metavar "OPT" )
|
||||
|
||||
camelToDashed :: String -> String
|
||||
camelToDashed "" = ""
|
||||
camelToDashed (c:cs) = toLower c : go cs where
|
||||
go "" = ""
|
||||
go (c:cs) | isUpper c = '-' : toLower c : go cs
|
||||
| otherwise = c : go cs
|
||||
|
||||
options :: IO Options
|
||||
options = execParser $ info
|
||||
(pipelineArgs <**> helper)
|
||||
|
@ -193,4 +193,4 @@ copyStructureWithLivenessInfo srcReg dstReg = IR.ConditionalMove
|
||||
{ srcReg = srcReg
|
||||
, predicate = isNotPointer
|
||||
, dstReg = dstReg
|
||||
}
|
||||
}
|
||||
|
2
grin/test-data/.gitignore
vendored
2
grin/test-data/.gitignore
vendored
@ -1 +1 @@
|
||||
experimental/
|
||||
experimental/
|
||||
|
@ -1,11 +0,0 @@
|
||||
Put tests into separate files:
|
||||
Why?:
|
||||
- do not need to recompile each time a test case is modified
|
||||
- data is seprated from functionality
|
||||
- a piece of test code can be reused
|
||||
- for other tests
|
||||
- for playing with it manually (this can be really useful)
|
||||
|
||||
How?:
|
||||
- a well structured testing framework is required
|
||||
- some prototypes can be find on Anabra/grin:dde-old
|
Loading…
Reference in New Issue
Block a user