Commit graph

2070 commits

Author SHA1 Message Date
Moritz Eysholdt
4b4789bf5a [util.formallang/serializer] improvements based on suggestions from FindBugs 2011-07-31 17:59:13 +02:00
Moritz Eysholdt
c26a44f227 [serializer] fixed 352672 - strange error message for missing feature 2011-07-31 17:57:13 +02:00
Moritz Eysholdt
549586fcad regenerated test languages, xbase and xtend2 2011-07-31 17:36:50 +02:00
Moritz Eysholdt
5b18309903 no test class without test case 2011-07-31 17:30:15 +02:00
Moritz Eysholdt
5065d284e5 [serializer/tests] added newly generated serializer files 2011-07-31 17:18:31 +02:00
Moritz Eysholdt
9814770434 [serializer/tests] disabled and not supported
This test checks if a model can serialized when it has un-scopable cross
referenced. The old serializer used to delegate to the node model, take
the value from there and continue quietly. 

This behavior can lead to 
- overlooked bugs in one's scoping implementation
- mysterious usage of wrong (old) cross reference 
  values during serialization
- Models which have "successfully" been serialized but can not be
  parsed/linked again.
  
Therefore, I think it makes sense to support this mechanism as soem kind
of error recovery. However, it should at least raise a warning.
2011-07-31 17:18:31 +02:00
Moritz Eysholdt
f0585b349a [serializer/tests] this seems to work now as expected 2011-07-31 17:18:31 +02:00
Moritz Eysholdt
157efb904c [serializer/tests] fixed the formatter test 2011-07-31 17:18:31 +02:00
Moritz Eysholdt
15f6459fe7 [serializer/tests] don't use use new serializer because of bug 346695
https://bugs.eclipse.org/bugs/show_bug.cgi?id=346695
2011-07-31 17:18:31 +02:00
Moritz Eysholdt
773bd83989 [serializer] improved sequence acceptor
- handle case-insensitive keywords properly
- init TokenStream properly
- in a TokenStream, cross references seem to be represented by a
  CrossRef-Object and not by a RuleCall object.
2011-07-31 17:18:30 +02:00
Moritz Eysholdt
21aee073b3 [serializer/tests] added handler for transient values 2011-07-31 17:18:30 +02:00
Moritz Eysholdt
2c3eccf95a [serializer/tests] fixed test for transient values 2011-07-31 17:18:30 +02:00
Moritz Eysholdt
23c5a32a7c [serializer/ContextFinder] fixed potential NPEs 2011-07-31 17:18:30 +02:00
Moritz Eysholdt
2d351208c3 [serializer/tests] only expect the abstract semantic sequencer 2011-07-31 17:18:30 +02:00
Moritz Eysholdt
c680faa70b [serializer] generate src-version of serializer, where needed due to subclassing 2011-07-31 17:18:29 +02:00
Moritz Eysholdt
fbd050e803 [serializer] enabled the new serializer for most test languages 2011-07-31 17:18:29 +02:00
Sebastian Zarnekow
583283cabb [xtext][linking] Fix: Don't treat http URIs as resource URIs
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=343423
2011-07-31 15:43:07 +02:00
Sebastian Zarnekow
d78245d4e7 [xtext][nodemodel] Added test for bug 345874
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=345874
2011-07-30 00:06:28 +02:00
Sebastian Zarnekow
f5f8475e46 [xtext.ui][xtend.ui][xtext] Minor fixes for issues that were revealed by FindBugs 2011-07-29 20:28:37 +02:00
Sebastian Zarnekow
44bbfabcab [xtext] Fix: NPE in EObjectAtOffsetHelper
The helper failed for grammars like this:

  RuleA: RuleB feature=[EObject];

  RuleB: name=ID;

Turned out to be a combined problem in NodeModelUtils and EObjectAtOffsetHelper
2011-07-29 19:45:41 +02:00
Moritz Eysholdt
e51a0b84d0 [serializer/SynSeq] improved the hook for syntactic ambiguities 2011-07-29 14:15:26 +02:00
Moritz Eysholdt
ffac5ffa1e [util.formallang/PdaUtil] added method to filter unambiguous edges 2011-07-29 14:15:26 +02:00
Moritz Eysholdt
a13184ab98 [util.formallang/NfaUtil] various improvements
- never filter start/stop; 
- implemented breadth-first search
2011-07-29 14:15:25 +02:00
Moritz Eysholdt
433fa68ca7 [util.formallang/NfaToGrammar] support NFAs where start == stop 2011-07-29 14:15:25 +02:00
Moritz Eysholdt
2e7066533c [serializer/generator] simplified generated method names 2011-07-29 14:15:25 +02:00
Moritz Eysholdt
0b30cf19ad [serializer/GrammarConstraintProvider] improved readability of code 2011-07-29 14:15:25 +02:00
Moritz Eysholdt
1f121c5a62 [serializer/BacktrackingSemSeq] dynamically sort NFA to prefer mandatory over optional values 2011-07-27 16:46:16 +02:00
Moritz Eysholdt
2641242507 [serializer/ContextFinder] delegate to the AssignmentFinder, if needed 2011-07-27 14:19:30 +02:00
Moritz Eysholdt
d8494783e4 [serializer/BacktrackingSemSeq] improved toString() to ease debugging 2011-07-27 14:17:04 +02:00
Moritz Eysholdt
cb8eb3ff38 [serializer/GrammarConstraintProvider] Consider actions in lookahead 2011-07-27 14:15:29 +02:00
Moritz Eysholdt
f86a429192 [util.formallang] factored out StringNfa and StringPda 2011-07-26 18:17:29 +02:00
Moritz Eysholdt
9d86ca6952 [util.formallang] a graph has nodes, not states 2011-07-26 16:16:00 +02:00
Moritz Eysholdt
469b58e652 [util.formallang] removed ITokenAdapter, better use Function<X,TOKEN> 2011-07-26 16:12:13 +02:00
Moritz Eysholdt
804bfe2b95 [util.formallang] removed invalid test case
PDAs/NFAs without start and stop states are invalid.
2011-07-26 16:09:29 +02:00
Moritz Eysholdt
307557f43c [util.formallang] improved naming 2011-07-26 13:06:37 +02:00
Moritz Eysholdt
470dcaca85 [util.formallang] NFAs are DirectedGraphs 2011-07-26 13:06:37 +02:00
Moritz Eysholdt
3957bd2903 [util.formallang] NFAs/PDAs should only have a single start and a single stop state 2011-07-26 13:06:37 +02:00
Moritz Eysholdt
dc4ed01340 [util.formallang] some generics just aren't worth it 2011-07-26 13:06:36 +02:00
Moritz Eysholdt
5cced36b85 [util.formallang] copy an NFA for sorting instead of sorting in-place 2011-07-26 13:06:36 +02:00
Moritz Eysholdt
c44529ad2d [serializer/AssignmentFinder] support terminal/datatype-rules that return enums 2011-07-25 20:18:51 +02:00
Moritz Eysholdt
0e97152963 [serializer] improved error reporting of invlid enum values 2011-07-25 20:18:51 +02:00
Dennis Huebner
c11038aaff added dependency to o.e.xtext.xbase cause it is indirect used by org.eclipse.xtext.xtext.ecoreInference.Xtext2EcoreTransformerTest.testBug346035_01() 2011-07-25 19:12:32 +02:00
Moritz Eysholdt
d00ca9d1b7 [serializer/GrammarConstraints] fixed recursive impl of isOptional() and isMany() 2011-07-25 18:51:23 +02:00
Moritz Eysholdt
f92ffe0901 [serializer/ContextFinder] improved handling of transient values 2011-07-25 18:51:22 +02:00
Sebastian Zarnekow
7ac88c68c0 [xtext][builder] Fix: containers should not expose null entries in #getResourceDescriptions
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=352214
2011-07-25 18:43:29 +02:00
Moritz Eysholdt
ee37e89f57 regenerated test languages 2011-07-25 16:49:28 +02:00
Moritz Eysholdt
69d24d7056 [serializer/AssignmentFinder] added support for boolean assignments 2011-07-25 16:49:28 +02:00
Sebastian Zarnekow
7f6b31eb54 [xtext][generator] Made class splitting more greedy by default, exposed configuration parameter for class splitting
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=349992
2011-07-25 15:50:13 +02:00
Sebastian Zarnekow
195453d985 [xtext][generator] Improved class splitting for larger DFAs in generated lexer
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=349992
2011-07-25 14:29:50 +02:00
Moritz Eysholdt
2473fdd605 [SerializerTester] reuse ResourceSet, if possible 2011-07-25 12:45:22 +02:00