diff --git a/TODO.md b/TODO.md index b1a8b86..36ab1d5 100644 --- a/TODO.md +++ b/TODO.md @@ -6,6 +6,8 @@ - [ ] need canonical form making it easy to run all these validation passes - [ ] are recursive slices inclusive? + - [ ] you can apparently have empty SigConCats - but what does this + even mean? - [ ] what are the semantics of connection ``? - [ ] Validate that `123456789[0:9][0:8]` is valid RTLIL - [ ] add validation section to README diff --git a/src/RTLILParser/Parser.hs b/src/RTLILParser/Parser.hs index 1160691..6d10acf 100644 --- a/src/RTLILParser/Parser.hs +++ b/src/RTLILParser/Parser.hs @@ -246,7 +246,7 @@ pSigSpecConcat = p name where name = "SigSpecConcat" p = do - char '{' <* pWs + char '{' <* pMaybeWs sigspecs <- many $ pSigSpec <* pWs char '}' return $ SigSpecConcat sigspecs