Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i prevent empty variables outputting numbers??

Status
Not open for further replies.

mattmakins

Programmer
May 5, 2005
1
GB
I am writing a language parser using prolog.

I am using possible variables for example:

Noun_phrase --> poss_deter (PD), poss_noun(PN).

poss_noun(N)-->n(N).
poss_noun(PN)-->[ ].

if a noun isnt being parsed then the poss_noun-->[ ] is used. However when outputting the noun phrase this displays a bunch of numbers for the poss_noun variable. I assume this is the memory location. Is there anyway of preventing this.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top