xref: /aosp_15_r20/external/antlr/runtime/Python/TODO (revision 16467b971bd3e2009fad32dd79016f2c7e421deb)
1*16467b97STreehugger Robot- new test from CL4832
2*16467b97STreehugger Robot- CS4531
3*16467b97STreehugger Robot- testcases for error nodes
4*16467b97STreehugger Robot- did I miss a change to Python.stg/returnScope?
5*16467b97STreehugger Robot  - there are base classes Tree-/ParserRuleReturnScope
6*16467b97STreehugger Robot- update old and add new examples
7*16467b97STreehugger Robot- need protections in scopeAttributeRef? CL4426
8*16467b97STreehugger Robot- testcase for $ID.int CL4413
9*16467b97STreehugger Robot- need to override Target.encodeIntAsCharEscape? CL4389
10*16467b97STreehugger Robot- look into buildbot
11*16467b97STreehugger Robot  - link in report mails is broken
12*16467b97STreehugger Robot  - timezone bug in p4 scraper
13*16467b97STreehugger Robot  - core:
14*16467b97STreehugger Robot    - only look at changes in src/ & runtime/Java
15*16467b97STreehugger Robot    - quick
16*16467b97STreehugger Robot      - incremential build
17*16467b97STreehugger Robot      - sanity check
18*16467b97STreehugger Robot    - full
19*16467b97STreehugger Robot      - depend on quick
20*16467b97STreehugger Robot      - full build
21*16467b97STreehugger Robot      - ant test
22*16467b97STreehugger Robot  - targets
23*16467b97STreehugger Robot    - depend on changes on src/ and runtime/XXX
24*16467b97STreehugger Robot    - depend on successful core/quick build
25*16467b97STreehugger Robot  - nightlybuild
26*16467b97STreehugger Robot    - depend on core/full
27*16467b97STreehugger Robot    - somehow check which targets are ok
28*16467b97STreehugger Robot- TreeWizard:
29*16467b97STreehugger Robot  - raise exception on parse errors
30*16467b97STreehugger Robot  - document it in wiki
31*16467b97STreehugger Robot- publish runtime on cheeseshop
32*16467b97STreehugger Robot- better documentation for output=template w/ full examples
33*16467b97STreehugger Robot- antlr3.main:
34*16467b97STreehugger Robot  - verbose/quiet flag: show/hide warnings
35*16467b97STreehugger Robot  - set options in grammar?
36*16467b97STreehugger Robot  - write optionparser descriptions
37*16467b97STreehugger Robot  - better output for return objects
38*16467b97STreehugger Robot  - st support
39*16467b97STreehugger Robot- custom grammar options per target
40*16467b97STreehugger Robot  - make Grammar.legalOptions changeable
41*16467b97STreehugger Robot  - first extract language option, load target class
42*16467b97STreehugger Robot  - pass options not known by Grammar to target
43*16467b97STreehugger Robot- patch for CS4010 "null check for $scope::var now" once action parser is fixed
44*16467b97STreehugger Robot- rename @members/@init to @classmembers, @instancemembers?
45*16467b97STreehugger Robot- gunit?
46*16467b97STreehugger Robot- testcases error handling in tree parsers
47*16467b97STreehugger Robot- better test coverage for runtime modules
48*16467b97STreehugger Robot- documentation
49*16467b97STreehugger Robot  - more documentation in docstrings
50*16467b97STreehugger Robot  - tune doxygen output
51*16467b97STreehugger Robot  - doxygen frontpage
52*16467b97STreehugger Robot- do not use Set* templates for properties for Python target
53*16467b97STreehugger Robot  - gate with sempred {target.usePropertySetTemplates()}?
54*16467b97STreehugger Robot- special template for empty alternative -> pass
55*16467b97STreehugger Robot- complete runtime
56*16467b97STreehugger Robot - tree.DoubleLinkTree
57*16467b97STreehugger Robot - tree.ParseTree
58*16467b97STreehugger Robot - tree.UnBufferedTreeNodeStream
59*16467b97STreehugger Robot- default values in rule arguments?
60*16467b97STreehugger Robot- turn some methods into attributes
61*16467b97STreehugger Robot  - (String|CommonToken)Stream.index()
62*16467b97STreehugger Robot  - (String|CommonToken)Stream.size() --> __len__
63*16467b97STreehugger Robot- get rid of getter/setter in generated code
64*16467b97STreehugger Robot- document differences to java API
65*16467b97STreehugger Robot- add methods to emulate java API, but mark 'em as deprecated
66*16467b97STreehugger Robot- using Stream.index as a state for 'error-already-reported' or memoization
67*16467b97STreehugger Robot  will be a problem when the stream is not a linear buffer
68*16467b97STreehugger Robot- optimizations which should be explored:
69*16467b97STreehugger Robot  - DFA: perhaps zip() the lists into a tuple
70*16467b97STreehugger Robot    (eot, eof, min, max, accept, special, transition)
71*16467b97STreehugger Robot    for each state. checkout potential performance gain.
72*16467b97STreehugger Robot  - StingStream: look into optimizing LA(). Perhaps use LAk instead of LA(k)
73*16467b97STreehugger Robot    and create the attributes when needed.
74*16467b97STreehugger Robot  - Perform some magic to improve dfaStateSwitch.
75*16467b97STreehugger Robot  - in lexer rules:
76*16467b97STreehugger Robot    LA == u'a' or LA == u'b' or LA == u'c'...
77*16467b97STreehugger Robot    -> LA in (u'a', u'b', u'c', ...)
78*16467b97STreehugger Robot    or "LA in self.set_xyz" with set_xyz as a class member
79*16467b97STreehugger Robot    - tweak CodeGenerator.genSetExpr()
80*16467b97STreehugger Robot  - make BaseTree.nil() an attribute? or singleton?
81*16467b97STreehugger Robot  - psycho??
82*16467b97STreehugger Robot- ...
83