Defining syntax

LiveCode Builder is a language for extending LiveCode's capabilities, creating new object types as Widgets, and libraries that access lower-level APIs in OSes, applications, and DLLs.

Moderators: LCMark, LCfraser

Post Reply
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 991
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas

Defining syntax

Post by trevordevore » Fri Feb 06, 2015 3:28 am

I've been looking at `syntax` entries in the ./libscript/src/*.mlc files. I would like to define some custom syntax in my mlc library if possible. I want to define the following syntax:

Code: Select all

put the host of url ""
Is that possible in a library? If so, what is the syntax assuming I have a handler named `urlExtractBaseURL` that expects a string argument and returns a string?
Trevor DeVore
ScreenSteps -

LiveCode Repos -
LiveCode Builder Repos -

Livecode Staff Member
Livecode Staff Member
Posts: 53
Joined: Tue Jun 03, 2008 10:31 am

Re: Defining syntax

Post by benjibeaumont » Fri Feb 06, 2015 2:25 pm

Hi Trevor,

Unfortunately not. That is what we'll be doing in version "9" with extensible syntax. At the moment all syntax in LCB is built into the compiler.

I put "9" in quotes because that's what we are terming it internally. It's just an extension of what we're doing in 8.0.. It doesn't mean it's a long time away. It all slated for 2015. It may not even be called 9.

Warm regards,

Ben Beaumont | Runtime Revolution

VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 725
Joined: Fri Jun 27, 2008 9:00 pm

Re: Defining syntax

Post by Mikey » Mon Feb 09, 2015 4:49 pm

YIKES! 8 doesn't seem to be close (my bet would be late 3Q 2015), so getting 9 out in 2015 seems like a (sweet!) dream.

Post Reply

Return to “LiveCode Builder”