Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > procedure call name vs.association_list ambiguity

Reply
Thread Tools

procedure call name vs.association_list ambiguity

 
 
root
Guest
Posts: n/a
 
      07-11-2012
Consider the specification,

procedure_call ::= procedure_name [ ( parameter_association_list ) ]

association_list ::= association_element { , association_element }

name ::= simple_name |

indexed_name ::= prefix ( expression { , expression } )

How do you handle (1) in PROC1(1): as association list or as expression?

 
Reply With Quote
 
 
 
 
KJ
Guest
Posts: n/a
 
      07-12-2012
On Wednesday, July 11, 2012 5:49:30 PM UTC-4, root wrote:
> Consider the specification,
>
> procedure_call ::= procedure_name [ ( parameter_association_list ) ]
>
> association_list ::= association_element { , association_element }
>
> name ::= simple_name |
>
> indexed_name ::= prefix ( expression { , expression } )
>
> How do you handle (1) in PROC1(1): as association list or as expression?


Assuming PROC1 is declared to be a procedure, then the expression 1 is used as the first association element in that procedure.

Kevin Jennings
 
Reply With Quote
 
 
 
 
valtih1978
Guest
Posts: n/a
 
      07-12-2012
Do you mean that they merge somehow? I have never heard about such
parsing technique. Normally, parser takes either name production or
association list route. It cannot end up in both expression (which is
name extension) and association element that follows it, at the same
time. Otherwise, everything is ok.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
procedure as argument in procedure AlexWare VHDL 2 10-23-2009 09:14 AM
A proper Ruby way to call a procedure by name John Small Ruby 2 12-15-2008 12:30 PM
name lookup ambiguity George2 C++ 0 03-17-2008 12:09 PM
'Procedure or function <stored procedure name> has too many arguments specified',,,ARGH! Mike P ASP .Net 0 06-19-2006 01:19 PM
Crystal Dll vs GAC ambiguity problems Greg ASP .Net 0 09-01-2005 02:35 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57