xu do sisku lo lojbo tcana
  [Home] [Manage]

Posts and uploaded files are owned by the poster. jbotcan.org is not liable for the content submitted by the poster. Downloading any poster-submitted files is doing so at your own risk.


[Return]
Posting mode: Reply

Painter: Width: Height: Source:

Leave these fields empty (spam trap):
Name
Link
Subject (encouraged)
Comment
File
Password (for post and file deletion)
  • Supported file types are: GIF, JPG, PNG
  • Maximum file size allowed is 1000 KB.
  • Images greater than 200x200 pixels will be thumbnailed.

No.1365  

I was looking for the Lojban words for "parser" and "scanner" in the computer science sense. I've not been able to find them so I guessed I had to invent mine (assuming they are not already there).

So, since a scanner (or lexer) is something that analyze a text to extract tokens (words) I thought that
lalvla = lanli+valsi = analyzer + word
could serve.

It could be:
x1 is a scanner/lexer/tokenizer for language x2 written in language x3
Where x3 is a programming language or a formalism.

In the same vein:
lalgen = lanli + gerna = analyzer + grammar
could serve for:
x1 is a parser for language x2 written in language x3 producing x4

x4 is there as a parser may produce a derivation tree, an intermediate form, an error report etc.

Now, does the above make any sense to you?

remod

>> No.1366  

... now that I think about it. Should it be vlalal (valsi+lanli) and genlal (gerna+lanli)?

Is there a rule about the order in which the gismu have to appear in a lujvo?

>> No.1368  

i seem to recall {genturfa'i} being used for parser.

>> No.1369  

>>1368

>> {genturfa'i}

If I understand it correctly, it defines a parser as something "that finds the grammatical structures". I'm ok with that (even if I would have argued a little on the choice of "find/discover").

Now,to be consistent, a lexer should be something that "finds the words as defined by a grammar". Should it be {genvlafa'i} ?

>> No.1370  

>>1366

"vlalanli" and "genlanli". The right-most part of the lujvo is the most basic meaning of the word. Thus a "lanvla" is fundamentally a word ("analyzed/analytical-word"?), and "vlalanli" is fundamentally an analyzer.

>>1369

Perhaps "vlafendi", "word-partitioner" for "lexer"? Unfortunately, that's easily interpreted as "splits words" rather than "splits into words".

"genturfa'i" makes sense, since a parser takes a stream of input and outputs a grammar-structure (specifically, a parse tree), so it could be "x1 finds/discovers the grammar-structure of x2". "lexer" could simply be "vlafa'i". If you want to be more specific than "word-finder", you could use the tanru "vlafa'i samvelkanji", "word-finder computer-algorithm". In the appropriate context, though, "vlafa'i" will probably be sufficient.



Delete Post []
Password