gitweb on Svarog
projekti pod git sistemom za održavanje verzija -- projects under the git version control system
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3382daa)
raw | patch | inline | side by side (parent: 3382daa)
author | Doni Pracner <quinnuendo@gmail.com> | |
Mon, 20 Jan 2014 17:05:40 +0000 (18:05 +0100) | ||
committer | Doni Pracner <quinnuendo@gmail.com> | |
Mon, 20 Jan 2014 17:05:40 +0000 (18:05 +0100) |
src/mjc2wsl.java | patch | blob | history |
diff --git a/src/mjc2wsl.java b/src/mjc2wsl.java
index 82ae9cc5744182c0b5e87d494dd43c8f7ddea44f..6f7efe17b770d362c6af3324582bb2336f4a44e5 100644 (file)
--- a/src/mjc2wsl.java
+++ b/src/mjc2wsl.java
prl("tempArray[tempa+1]:=tempres ENDVAR;");
break;
}
- //TODO arraylength
+ case arraylength :{
+ prl(getTop());
+ //TODO make an array length function of some sort!
+ prl(createComment("array length not known - LENGTH not aplicable to arrays",C_ERR));
+ message("array length not known - LENGTH not aplicable to arrays",M_ERR);
+ prl(createComment("put 1 on the stack for consistency",C_SPEC));
+ prl(cmdToEStack(1));
+ break;
+ }
+
//TODO dup, dup2
case pop : {