Commit Graph

298 Commits

Author SHA1 Message Date
parrt 6898dc6f5e add readonly bit to sets
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9458]
2011-11-25 14:39:05 -08:00
parrt d35560583c add remove() to IntervalSet
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9456]
2011-11-25 14:25:08 -08:00
parrt 5dfc4aed1d add on-the-fly listeners; augment enter/exit rule, consume(). playground/U.g and MyUListener.java are test. added human-readable toInfoString to ParserRuleContext such as
RuleParserRuleContext[s, a]{altNum=0, start=[@0,0:0='a',<6>,1:0], stop=null, st=null}

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9453]
2011-11-25 10:38:36 -08:00
parrt 4af8a7ac61 rm bad comment
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9452]
2011-11-25 10:00:02 -08:00
sharwell 7a52d4e304 Back out changelist 9448
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9449]
2011-11-23 12:25:06 -08:00
sharwell 898138a5e2 v4: Reusable ATN simulator objects
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9448]
2011-11-23 06:42:31 -08:00
sharwell 89ebd369f9 v4: @Override annotations, update equals to check parameter type
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9447]
2011-11-23 06:41:45 -08:00
sharwell ed7377dfd4 v4: remove TODO - situation was already addressed
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9446]
2011-11-23 06:31:08 -08:00
parrt bf1e306bae rm commented out code
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9445]
2011-11-22 18:29:14 -08:00
sharwell 22edf77263 v4: specify generic type
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9439]
2011-11-22 16:38:42 -08:00
sharwell cf0d47c8fe v4: Parser.setInputStream calls Parser.setTokenStream
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9438]
2011-11-22 16:36:39 -08:00
sharwell 1495ba5bd7 v4: use getInterpreter() instead of directly accessing the _interp field
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9437]
2011-11-22 16:33:19 -08:00
parrt 72684907bc add -Xlog, add .ctx to rule refs. parse tree test pass.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9436]
2011-11-22 16:30:50 -08:00
parrt 95f3afa562 rm ANTLRStringStream. combined with ANTLRInputStream. causes name change in lots of files. rm encoding ability.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9435]
2011-11-22 15:50:19 -08:00
parrt 7d5c69842b BufferedTokenStream gets generic type. CommonTokenStream extends BufferedTokenStream<CommonToken>, rename unbuff'd stream. add unbuff token stream
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9428]
2011-11-22 15:21:09 -08:00
parrt 4b393cf448 rm QStack and use ArrayDeque
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9427]
2011-11-22 14:33:35 -08:00
parrt 31c24292cd unbuff char stream working
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9425]
2011-11-22 12:32:15 -08:00
parrt 45dc683a91 tweak
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9424]
2011-11-22 12:30:53 -08:00
parrt f3b0ffb8b2 almost working
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9423]
2011-11-21 17:55:39 -08:00
parrt 0fe415e227 checking in but doesn't work yet; just so i can pull at work
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9421]
2011-11-20 16:07:45 -08:00
parrt f8a8aadca2 tweak
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9420]
2011-11-20 15:14:19 -08:00
parrt 3e216a258d combine Reader/InputStream into InputStream
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9419]
2011-11-20 15:13:16 -08:00
parrt 6abc73cba3 tweak
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9418]
2011-11-20 15:04:48 -08:00
parrt 2c98cae751 no more line/col in string stream
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9417]
2011-11-20 15:03:15 -08:00
parrt 4cc8a8e501 tweak
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9416]
2011-11-20 14:46:47 -08:00
parrt e71440b9cb tweak
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9415]
2011-11-20 14:40:26 -08:00
parrt 4b4a7d9c7a add LogManager, add InputSymbolType()
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9413]
2011-11-20 14:27:58 -08:00
parrt 01a71c5b02 fixing a lot of little thingsTo make my examples work
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9410]
2011-11-19 17:27:19 -08:00
parrt b61603e98a A rename of TSymbol->Symbol and a few of T to Symbol. Also changed name of the default error handler
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9406]
2011-11-19 13:44:53 -08:00
sharwell 5c7ff2cf9d v4: Use IntStream.mark to ensure that CharStream.substring works within the bounds necessary for Lexer.getText
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9405]
2011-11-19 13:39:55 -08:00
parrt 6b1c367d54 tweak
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9404]
2011-11-19 13:28:50 -08:00
parrt 4476cbf22b else format
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9403]
2011-11-19 13:09:48 -08:00
parrt c1b77ac6a8 format else
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9401]
2011-11-19 12:48:15 -08:00
parrt 7f042393d2 tweak
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9400]
2011-11-19 12:47:41 -08:00
parrt 06ed597d29 tweak
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9399]
2011-11-19 12:42:54 -08:00
parrt ac7913e67f tweak
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9398]
2011-11-19 12:40:48 -08:00
sharwell 0092b421b5 v4: Fix Lexer.reset (and as a side effect fixes Lexer.setInputStream)
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9396]
2011-11-18 22:58:11 -08:00
sharwell f64ecebd34 v4: Fix LookaheadStream ability to seek forward past the current location (via consume())
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9395]
2011-11-18 22:54:07 -08:00
sharwell 7774405ee3 v4: Can't use the @NotNull and @Nullable from com.sun.istack.internal. Adding our own until we settle on a final library.
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9394]
2011-11-18 22:48:08 -08:00
sharwell ca141afc28 v4: @NotNull and @Nullable annotations for fields and methods
mark fields final
no behavior changes

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9389]
2011-11-18 11:29:58 -08:00
sharwell 6060b6c288 v4: visitToken->visitTerminal
TokenNode->TerminalNode

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9384]
2011-11-17 20:09:24 -08:00
sharwell ff97c91ef2 v4: ObjectStream -> SymbolStream
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9381]
2011-11-17 19:45:35 -08:00
sharwell f999b5c3d0 v4: TODO comments
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9380]
2011-11-17 19:40:56 -08:00
sharwell 65f8b9f124 v4: Add TSymbol generic type parameter to Recognizer, BaseRecognizer, ParserATNSimulator, ParserRuleContext, ParseTreeListener, ANTLRErrorStrategy, ANTLRErrorListener, TreeParserRuleContext
Move ParserRuleContext.tree/getTree to the generated contexts, implement ASTContext<T> for strongly typed getTree() method

[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9379]
2011-11-17 19:40:48 -08:00
sharwell 73907aacd3 v4: Unnecessary semi in {;}
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9377]
2011-11-17 19:07:17 -08:00
sharwell b441dc226a v4: Specify @Override
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9376]
2011-11-17 19:06:20 -08:00
sharwell 5f6b463174 v4: StringBuilder instead of StringBuffer
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9375]
2011-11-17 19:00:49 -08:00
sharwell 0e587759c1 v4: Specify @Override
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9374]
2011-11-17 19:00:00 -08:00
sharwell 8d92e55e49 v4: Specify @Override
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9373]
2011-11-17 18:58:24 -08:00
sharwell 9ce0968a5e v4: Specify @Override
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9372]
2011-11-17 18:55:47 -08:00