Skip to content

Commit

Permalink
[Fix] Replace · with an ascii .
Browse files Browse the repository at this point in the history
  • Loading branch information
lierdakil committed Mar 17, 2021
1 parent 0098a9e commit de0a87d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/Parser/LR/CPP.hs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ std::size_t #{name}::top() const { return stack.empty() ? 0 : stack.top().first;
i <- gets snd
modify (M.insert act i *** (+1))
return i
stateToString = T.intercalate "," $ "\"·\"" : map (quote . showSymbol) (M.elems lrStateSym)
stateToString = T.intercalate "," $ "\".\"" : map (quote . showSymbol) (M.elems lrStateSym)
expectedSym = T.intercalate "," $ map (quote . T.intercalate "/") $ M.elems lrExpected
actionCases = T.intercalate "\n" $ mapMaybe writeAction $ M.toList actionsMap
writeAction (Shift _, _) = Nothing
Expand Down
2 changes: 1 addition & 1 deletion lib/Parser/LR/CSharp.hs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public class #{className}#{topInh gtop} {
i <- gets snd
modify (M.insert act i *** (+1))
return i
stateToString = T.intercalate "," $ "\"·\"" : map (quote . showSymbol) (M.elems lrStateSym)
stateToString = T.intercalate "," $ "\".\"" : map (quote . showSymbol) (M.elems lrStateSym)
expectedSym = T.intercalate "," $ map (quote . T.intercalate "/") $ M.elems lrExpected
actionCases = T.intercalate "\n" $ mapMaybe writeAction $ M.toList actionsMap
writeAction (Shift _, _) = Nothing
Expand Down
2 changes: 1 addition & 1 deletion lib/Parser/LR/JS.hs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ module.exports = {#{name}}
i <- gets snd
modify (M.insert act i *** (+1))
return i
stateToString = T.intercalate "," $ "\"·\"" : map (quote . showSymbol) (M.elems lrStateSym)
stateToString = T.intercalate "," $ "\".\"" : map (quote . showSymbol) (M.elems lrStateSym)
expectedSym = T.intercalate "," $ map (quote . T.intercalate "/") $ M.elems lrExpected
actionCases = mapMaybe writeAction $ M.toList actionsMap
writeAction (Shift _, _) = Nothing
Expand Down
2 changes: 1 addition & 1 deletion lib/Parser/LR/Python.hs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class #{name}#{topInh gtop}:
i <- gets snd
modify (M.insert act i *** (+1))
return i
stateToString = T.intercalate "," $ "\"·\"" : map (quote . showSymbol) (M.elems lrStateSym)
stateToString = T.intercalate "," $ "\".\"" : map (quote . showSymbol) (M.elems lrStateSym)
expectedSym = T.intercalate "," $ map (quote . T.intercalate "/") $ M.elems lrExpected
actionCases = mapMaybe writeAction $ M.toList actionsMap
writeAction (Shift _, _) = Nothing
Expand Down

0 comments on commit de0a87d

Please sign in to comment.