Changeset 14624 for src/Pugs/Parser
- Timestamp:
- 11/05/06 03:22:19 (2 years ago)
- svk:copy_cache_prev:
- 41990
- Files:
-
- 1 modified
-
src/Pugs/Parser/Types.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Parser/Types.hs
r14167 r14624 347 347 Modify the input stream by inserting a single 'Char' as the next thing to parse. 348 348 -} 349 insertIntoPosition :: Char-> RuleParser ()350 insertIntoPosition ch= do349 insertIntoPosition :: String -> RuleParser () 350 insertIntoPosition str = do 351 351 currPos <- getPosition 352 input <- getInput353 setInput ( ch:input)354 setPosition (setSourceColumn currPos (sourceColumn currPos - 1))352 input <- getInput 353 setInput (str ++ input) 354 setPosition (setSourceColumn currPos (sourceColumn currPos - length str))
