Questions tagged [ucb-logo]

UCB-logo is the most famous variant of the logo programming language. Use this tag if your question has any doubt in this variant of logo programming language and not if the question is about the logo of UC Berkeley

About UCB LOGO

UCB-Logo, also known as Berkeley Logo, discovered at the University of California at Berkeley, is closest to a de-facto standard Logo programming language with its facilities for handling lists, files, I/O, and recursion in scripts, and can be used to teach most computer science concepts, as UC Berkeley lecturer Brian Harvey did in his Computer Science Logo Style trilogy. For tertiary level teaching, however, Logo has been superseded by Scheme, and scripting languages.

Install UCB Logo On Ubuntu

To install Berkeley Logo, you can use the command

sudo apt-get install ucblogo

Sample Program

 to hello 
    print "|Hello World|   
 end  

 hello

References

  1. The UCB Logo home Page
  2. The UCB Logo Manual
  3. The ReadME of UCB Logo
  4. Wikipedia Page on UCB Logo
8 questions
3
votes
1 answer

How to catch command line arguments in Berkley Logo (UCBLogo)?

Berkeley Logo User Manual tells that all command line arguments after a hypen will be collected in the variable: If a command line argument is just a hyphen, then all command line arguments after the hyphen are not taken as filenames, but are…
tse
  • 5,769
  • 6
  • 38
  • 58
2
votes
2 answers

A dictionary data structure in the Logo language (key/value store)

I'm wondering if there is an implementation of a first class dictionary data structure available for use in the Logo language? I don't see one available in the documentation of UCB Logo or FMS Logo. I see that there are property lists, but those…
Greg Buchholz
  • 900
  • 4
  • 17
2
votes
1 answer

Logo if statement

I am using Logo and I have certain problems while iterating through list. What is the problem with the line. if count :L = 0 [stop] The :L is a list. So, I would like to test the length of list and stop after the list is empty.
user5070
  • 21
  • 3
1
vote
0 answers

UCB Logo readlist procedure not working as example in book says it should

I'm working my way through Computer Science Logo Style using UCB Logo 6.0 on Win10 One of the examples is the extract procedure, on this page: https://people.eecs.berkeley.edu/~bh/v2ch1/files.html My problem is that it will only read one line from…
OutThere
  • 467
  • 2
  • 8
  • 19
1
vote
0 answers

Scala parser combinator for Logo list?

I am trying to make a token based scala parser for UCB Logo. The problem I am facing is that in Logo any expression that lists in UCB Logo values in a list can be delimited by one of ']', '[', ' '. If there are any other kinds of delimiters the…
Marin
  • 861
  • 1
  • 11
  • 27
0
votes
1 answer

What does this ANLTR4 notation mean?

I have a question regarding the notation of a UCB Logo grammar that I found was generated for ANTLR4. There are some notations can't make out and thought about asking. If anyone is willing to clarify, I will be grateful. Here are the notations I…
Marin
  • 861
  • 1
  • 11
  • 27
-2
votes
1 answer

Animation in LOGO

I have created a nice pattern using the following one line code repeat 36 [repeat 10[fd 10 rt 36] rt 10] Now I want this to appear as if it is rotating. I have tried to clear the screen and then rotate the turtle a at a specific angle and then…
Bhargav Rao
  • 50,140
  • 28
  • 121
  • 140
-5
votes
1 answer

Program to print a circle of given diameter

I am trying to write a program to print a circle of given diameter in Berkeley logo. I get the input diameter from the user of the program and draw a circle accordingly. But I do not know of any method to display a circle given the diameter. All…
Bhargav Rao
  • 50,140
  • 28
  • 121
  • 140