n3 grammar: decimal and integer ambiguity

View: New views
1 Messages — Rating Filter:   Alert me  

n3 grammar: decimal and integer ambiguity

by lup :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi,
 
the rule I proposed for decimal :
    decimal : [-+]?[0-9]+\.[0-9]*
introduce an other ambiguity, for example, in:
    ?A math:notLessThan 17; math:lessThan 19.
there is a shift/reduce conflict, the ending point can be the decimal point or the statement end.
 
I can suggest
    decimal : [-+]?[0-9]+\.[0-9]+
 
Best regards
Luc Peuvrier