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
Moritz Eysholdt
d8c910bc08
[serializer] bugfix in how NFAs are created
...
This fix is of major relevance and I'm surprised it hasn't been
discovered earlier. The code that creates state machines (NFAs) for the
new (and the old) serializer didn't handle alternatives with optional
members correctly. If an alternative has at least one optional member,
the alternative itself becomes optional. This wasn't considered so far.
2011-07-25 12:30:51 +02:00
Moritz Eysholdt
c23c2f81a0
[serializer] removed old test that is superseded by XtextSerializerTest
2011-07-25 10:23:42 +02:00
Moritz Eysholdt
439f0d7bcd
[SerializerTester] resolve all proxies before detaching node model
2011-07-25 10:15:25 +02:00
Sebastian Zarnekow
cf7881a8e0
[xtext] Moved API breaking change to new currently internal utility class
2011-07-24 23:00:30 +02:00
Sebastian Zarnekow
867a534294
[xtext] Fixed some typos: semanitc -> semantic
2011-07-24 22:55:35 +02:00
Moritz Eysholdt
6d26277f9d
[serializer] enabled the backtracking semantic sequencer by default.
2011-07-24 20:59:41 +02:00
Moritz Eysholdt
9208a51961
[serializer] implemented backtracking generic semantic sequencer
2011-07-24 20:59:40 +02:00
Moritz Eysholdt
5dc6a309bb
[util.formallang] various improvements
...
- implemented a generic backtracking algorithm for NFAs
- added other utility functions for NFAs, such as
find, collect, sort, etc.
- implemented a simple generic NFA to ASCII renderer
2011-07-24 20:59:40 +02:00
Moritz Eysholdt
8069c50bdf
[GrammarElementTitleSwitch] fixed a potential NPE
2011-07-24 20:59:40 +02:00
Moritz Eysholdt
30f0fe0c42
added GrammarUtil.getFeature(EObject obj, EClass owner)
2011-07-24 20:59:40 +02:00
Moritz Eysholdt
c854fa2449
[serializer] factored out the AssignmentFinder
2011-07-24 20:59:40 +02:00
Moritz Eysholdt
cc564342a2
[serializer/semanticsequencer] removed unused code
2011-07-24 20:59:39 +02:00
Sebastian Zarnekow
dc87ba8362
Disabled some irritating System.out statements
2011-07-23 16:08:28 +02:00
Sebastian Zarnekow
a2bf3ae015
[xtext][junit4] Moved XtextRunnerTest to new test bundle junit4.tests
2011-07-22 16:03:04 +02:00
Sebastian Benz
81f239ab49
Fixed: XtextRunner creates an injector before saving the global registries, which causes the registries to be overwritten when generated standalone setups are used.
...
Signed-off-by: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
2011-07-22 15:38:36 +02:00
Sebastian Zarnekow
c8e96a3ed5
[xtext] Fix: NPE in EcoreUtil2#getEReferenceFromExternalForm
2011-07-22 15:34:18 +02:00
Sebastian Zarnekow
ac57627787
[xtext][nodemodel] Fix: CCE in #findLeafNodeAtOffset
...
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=352777
2011-07-22 10:37:03 +02:00
Holger Schill
08e3778579
fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=352450
2011-07-19 16:26:33 +02:00
Sebastian Zarnekow
901d6349d7
[xtend][scoping] Regression: Imports for nested types should not collide with imports for enclosing type, e.g.
...
import java.util.Map
import java.util.Map$Entry
should allow to write
def fun(Map map, Entry e, Map$Entry e2) {}
2011-07-19 15:27:41 +02:00
Moritz Eysholdt
ff166fac1b
regenerated test languages
2011-07-15 15:17:43 +02:00