forked from sgimenez/laby
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
basic: | ||
laby_name_forward (); | ||
laby_name_left (); | ||
laby_name_right (); | ||
laby_name_escape (); | ||
forward(); | ||
left(); | ||
right(); | ||
escape(); | ||
|
||
rocks: | ||
laby_name_take (); | ||
laby_name_drop (); | ||
take(); | ||
drop(); | ||
|
||
loop: | ||
while laby_name_look () = laby_name_Void do | ||
while look() = Void do | ||
... | ||
done; | ||
|
||
function: | ||
let f () = | ||
let f() = | ||
... | ||
|
||
conditional: | ||
if laby_name_look () = laby_name_Web | ||
if look() = Web | ||
then ( ... ) | ||
else ( ... ); |
d723eef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why you need such a change. Do these strings not render properly in the program?
The purpose of these weird names is translation. For example with
LANG=fr_FR.UTF-8 laby
, alaby_name_forward ()
is translated toavance ()
before it is displayed.What OS and locale do you use? I'd like to know where the problem comes from.
d723eef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry if I don't undertood. I tried using laby_name_forward() in the IDE to move the robot, and I got a syntax error, then I tried just forward(), left(), right(), look() and so forth, and everything worked. Let me know if I am doing something wrong. I used Objective Caml version 3.12.0 to compile the laby.
d723eef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way, my IDE is not showing the help files. I had to dive in the repo to see those. Maybe my compiled version is not so well done.
d723eef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am using Ubuntu Oneiric 11.10, but I remember having the same problems since Ubuntu Maverick. My locale should be US.
d723eef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great program by the way Stéphane.
d723eef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These help message are used in the first level where they are needed in the bottom left corner of the window. Can you confirm that they don't show up? Strange!?