ambiguity


Ambuigity with reserved keyword (?)


I have the following syntax definition with two reserved keywords and two similar statements:
module Test
// parse(#Statement,"do c") succeeds
// parse(#Statement,"define c") gives an ambiguity
start syntax Statement =
do: "do" Identifier+
| define: "define" Identifier+;
layout MyLayout = [\t\n\ \r\f]*;
lexical Identifier = ([a-z0-9] !<< [a-z][a-z0-9]* !>> [a-z0-9]) \ MyKeywords;
keyword MyKeywords = "do" | "define";
Then
parse(#Statement,"do c")
parses fine, the similar case
parse(#Statement,"define c")
gives an ambiguity.
What do I do wrong?
Sorry guys, the case has been resolved, the Test module was interfered by another module that caused the ambiguity.

Related Links

Ambuigity with reserved keyword (?)
Semantics-directed parser combinators
How to iterate “along” a Marpa parse forest rather than “through” its parse trees?
Checking Ambiguious Grammar
JavaCC Ambiguities: How do I tell the parser to chose a certain match from the the list of “longer matches”?
Ambiguity of function overloading - Integers vs. Doubles

Categories

HOME
events
user-interface
protocol-buffers
svn
gaming
qc
redmine
devexpress
risk-management
google-play-services
tcp
elisp
repair
stored-procedures
msmq
lapack
grocery-crud
asp.net-core-1.0
sonicwall
nose
android-custom-view
angular2-highcharts
sqlplus
amazon-sns
pyopencl
nurbs
webviewclient
sap-lumira
amazon-cloudtrail
guice
tilemill
d3.js-v4
dotcms
python-2.x
mongodb-3.4
delayed-job
caesar-cipher
gsp
nest
cloveretl
grails-2.5
xerces-c
nanogallery
cloudera-quickstart-vm
unification
telephonymanager
extbase
widestring
iscroll
praat
dagger
ipp-protocol
autorelease
image-registration
password-hash
skip-lists
google-news
algebra
nslayoutconstraint
connect-direct
mobile-angular-ui
glassfish-4.1
sesame
lvalue
msxml
instafeedjs
portal
xcode6.4
msg
nsrunloop
meld
noclassdeffounderror
apple-configurator
vimperator
flipclock
openmrs
jsr363
flush
ioctl
linuxbrew
google-maps-api-2
libz
cache-manifest
kotlin-android-extensions
scala-swing
r.java-file
python-c-extension
directorysearcher
lumia-imaging-sdk
git-reset
ivalueconverter
jchartfx
particle-swarm
vlab
frontbase
xs
spiral
xmlwriter
arrow
jdom
nsfont
n-queens
bucket
rtti
word-automation

Resources

Encrypt Message