Welcome Guest Search | Active Topics | Log In | Register

A weird thing in the reference manual
#1 Posted : Thursday, April 8, 2021 6:41:55 AM(UTC)
Rank: Advanced Member

Groups: Registered, Moderator
Joined: 3/26/2015(UTC)
Posts: 58
Location: Georgia

Thanks: 3 times
Was thanked: 0 time(s) in 0 post(s)
I've noticed that the reference manual has a ton of statements along these lines as example code:

initz := id [= exp][',' initz]
stat := 'local' initz

memberdecl := id '=' exp [';'] |    '[' exp ']' '=' exp [';'] |    functionstat | 'constructor' functionexp
stat:= 'class' derefexp ['extends' derefexp] '{'

funcname := id ['::' id]
stat:= 'function' id ['::' id]+ '(' args ')'[':' '(' args ')'] stat

I remember being very perplexed by these when I first started learning Squirrel, and I have to ask, why are they here? They look nothing like what the actual language looks like.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Clean Slate theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.052 seconds.