Skip to Content.
Sympa Menu

maude-help - [[Maude-help] ] Bubble don't behave as I expect

maude-help AT lists.cs.illinois.edu

Subject: Maude-help mailing list

List archive

[[Maude-help] ] Bubble don't behave as I expect


Chronological Thread 
  • From: fh413 <fh413 AT free.fr>
  • To: maude-help AT cs.uiuc.edu
  • Subject: [[Maude-help] ] Bubble don't behave as I expect
  • Date: Fri, 14 Aug 2015 11:44:32 +0100

Hello,

I work with Maude 2.7

Bubble don’t behave as I expect. Why some expressions can be parsed correctly
and others cannot ?

fmod SYNTAX is
pr QID . pr QID-LIST .

sort Tokens .
op tokens : QidList -> Tokens [special (id-hook Bubble (1 -1)
op-hook qidListSymbol
(__ : QidList QidList ~> QidList)
op-hook qidSymbol
(<Qids> : ~> Qid)
id-hook Exclude ( .
operator ))] .

sort S1 S2 .
op ( _ operator _ ) : Tokens Tokens -> S2 [gather (e e) prec 106] .
op ( _ operator _ . ) : Tokens S2 -> S1 [gather (e e) prec 108] .
endfm

Maude> parse in SYNTAX : ( A operator ! ! ).S2 .
S2: tokens('A) operator tokens('! '!)
Maude> parse in SYNTAX : ( A operator + + ).S2 .
Warning: <standard input>, line 4 : unexpected end of tokens.
Warning: <standard input>, line 4: no parse for term.
Maude> parse in SYNTAX : (A operator A operator ! ! . ).S1 .
S1: tokens('A) operator tokens('A) operator tokens('! '!) .
Maude> parse in SYNTAX : (A operator A operator + + . ).S1 .
Warning: <standard input>, line 6: didn't expect token +:
( A operator A operator + + <---*HERE*
Warning: <standard input>, line 6: no parse for term.

Thank you for yours Help.

Francis




  • [[Maude-help] ] Bubble don't behave as I expect, fh413, 08/14/2015

Archive powered by MHonArc 2.6.16.

Top of Page