Skip to content

Commit

Permalink
Fix alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericson2314 committed Sep 16, 2024
1 parent e386d02 commit f0cbec9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions lib/frontend/src/Happy/Frontend/AttrGrammar/Mangler.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,8 @@ manipulation and let binding goop
> where arity = length lhs
> partitionRules a b c [] = (a,b,c)
> partitionRules a b c (RightmostAssign attr toks : xs) = partitionRules
> a
> (MkAgSubAssign (arity,attr) toks : b)
> c
> xs
> partitionRules a b c (RightmostAssign attr toks : xs) = partitionRules a (x:b) c xs
> where x = MkAgSubAssign (arity,attr) toks
> partitionRules a b c (SelfAssign x : xs) = partitionRules (x:a) b c xs
> partitionRules a b c (SubAssign x : xs) = partitionRules a (x:b) c xs
> partitionRules a b c (Conditional x : xs) = partitionRules a b (x:c) xs
Expand Down
2 changes: 1 addition & 1 deletion lib/frontend/src/Happy/Frontend/Mangler.lhs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ So is this.
-- go do special processing. If not, pass on to the regular processing routine

> checkCode :: [Name] -> [Name] -> String -> [(String,String)] -> M (String,[Int])
> checkCode lhs _ code [] = doCheckCode (length lhs) code
> checkCode lhs _ code [] = doCheckCode (length lhs) code
> checkCode lhs nonterm_names code attrs = rewriteAttributeGrammar lhs nonterm_names code attrs

-----------------------------------------------------------------------------
Expand Down

0 comments on commit f0cbec9

Please sign in to comment.