Page 1 of 1

Keywords...

Posted: Fri May 01, 2020 9:48 pm
by bogs
I *did* look (quite a bit) before breaking down and asking, but what the hey, I couldn't find it.

I know how to list the commandNames, functionNames, colorNames, etc. but for the life of me can't figure out how to list the keywords used in this language to save my life.

Will someone, for the love of GOD, clue me in before I loose what little sanity I have left?

Thank you.

P.S.. - I did actually find the dictionary datagrid, with it's column of the keywords, but couldn't lift that either ~! Oh the shame of it all...

Re: Keywords...

Posted: Fri May 01, 2020 10:56 pm
by FourthWorld
The LC Dictionary has a filter for "keyword", but I've never been quite certain what a "keyword" is linguistically as used there.

Re: Keywords...

Posted: Sat May 02, 2020 9:12 am
by bogs
Yah, I was scraping through the code for the dictionary, as well as the editor, to try to determine how the IDE determines what a keyword is or not. I found lots of references to the keywords, even cps about them.

There must be a way to do it, as one of the most basic functions the SE handles is determining how to color them. If you don't know, then I am sorely disheartened.

I wound up lifting a list from the lexer that recently came up, but was hoping there must be a way to lift it directly from Lc itself because it appears to be ever changing, i.e. there is a huge change between say, Mc and Rev 2.7, and almost as large a change between then and current.

I'd like to (ideally) get the list on a per version basis.

*Edit - as hard as I found it to get the list from any other version of Lc, it is shockingly easy to get from 1.1.1 :roll:
aPic_keywordsV1.png
build me a list....
Of course, this method would not work for what I am trying to accomplish, so by all means, if you have an idea feel free to drop it here :P

Re: Keywords...

Posted: Sat May 02, 2020 1:44 pm
by bogs
I've gotten all of 9.x 's as well, but again, not how I would need to get them for what I'm trying to accomplish :(

Code: Select all

COOKIE
$_FILES
$_GET
$_GET_BINARY
$_GET_RAW
$_POST
$_POST_BINARY
$_POST_RAW
$_SERVER
$_SESSION
--
/**/
;
@
[]
\
abbreviated
addMax
addOver
addPin
adMin
after
any
array
as
ascending
at
back
before
binfile
black
blend
bold
box
break
browse
brush
bucket
button
by
byte
bytes
card
cascade
case value
catch errorParameter
character
characters
clear
codepoint
codepoints
codeunit
codeunits
colorPalette
comboBox
COMn:
control
curve
dateItems
dateTime
default
descending
dropper
each
effective
eighth
element
else
end
end if
end repeat
end switch
end try
english
eraser
field
fifth
file
finally
first
for
forever
fourth
from
front
ftp
graphic
gray
gRevAppIcon
gRevProfileReadOnly
gRevSmallAppIcon
home
http
https
image
in
int1
int2
int4
integer
internet
intersect
into
inverse
it
italic
item
items
last
line
lines
link
long
LPT1:
magnifier
marked
maximize
me
menu
menuItem
message box
middle
milliseconds
minimize
modem:
next
ninth
noOp
normal
notSrcAnd
notSrcAndReverse
notSrcBic
notSrcCopy
notSrcOr
notSrcOrReverse
notSrcXOr
numeric
of
onto
opaque
option
oval
paint
paragraph
paragraph
pencil
plain
player
point
pointer
polygon
popup
previous
printer:
private (command|function) name parameterList
pulldown
real4
real8
recent
rectangle
regular
relative
resfile
reverse
roundRect
scrollbar
second
seconds
segment
segments
select
sentence
sentences
set
seventh
shadow
short
sixth
spray can
srcAnd
srcAndReverse
srcBic
srcCopy
srcOr
srcOrReverse
srcXOr
standard
stderr
stdin
stdout
strikeout
string
subOver
subPin
surround
system
tabbed
target
templateAudioClip
templateButton
templateCard
templateEPS
templateField
templateGraphic
templateGroup
templateImage
templatePlayer
templateScrollbar
templateStack
templateVideoClip
tenth
text
the
the selection
then
third
this
threeDBox
ticks
title
to
token
top
transparent
trueWord
trueWords
uInt1
uInt2
uInt4
underline
until
URL
using
while
white
whole
with
without
word
words