Skip to content
Snippets Groups Projects
Commit 6e0ac037 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

fixed (to work with BMML)

Rev: doc/lpc/class:1.2
Rev: doc/lpc/hilfe:1.2
Rev: doc/lpc/preprocessor:1.2
parent c46a6932
No related branches found
No related tags found
No related merge requests found
NAME NAME
class class - define a inlined program
SYNTAX SYNTAX
class { program definition } class { program definition }
...@@ -14,5 +14,8 @@ EXAMPLE ...@@ -14,5 +14,8 @@ EXAMPLE
complex->r=1.0; complex->r=1.0;
complex->i=1.0; complex->i=1.0;
KEYWORDS
lpc
SEE ALSO SEE ALSO
inherit, lambda inherit, lambda
...@@ -39,6 +39,7 @@ DESCRIPTION ...@@ -39,6 +39,7 @@ DESCRIPTION
Evaluate a statement: Evaluate a statement:
<statement> ; <statement> ;
Statements include the following examples: Statements include the following examples:
for(e=0;e<10;e++) ; for(e=0;e<10;e++) ;
e=10; e=10;
...@@ -49,7 +50,3 @@ DESCRIPTION ...@@ -49,7 +50,3 @@ DESCRIPTION
Statements beginning with for, while, switch, if, do or return will Statements beginning with for, while, switch, if, do or return will
not automatically return anything, and no result will be printed. not automatically return anything, and no result will be printed.
SEE ALSO
script_mode
NAME
preprocessor - textually process code before compiling
DESCRIPTION DESCRIPTION
µLPC has a builtin C-style preprocessor. It works similar to old µLPC has a builtin C-style preprocessor. It works similar to old
C preprocessors but has a few extra features. This file describes C preprocessors but has a few extra features. This file describes
...@@ -19,7 +22,7 @@ PREPROCESSOR DIRECTIVES ...@@ -19,7 +22,7 @@ PREPROCESSOR DIRECTIVES
#pragma #pragma
#undef #undef
---------------------------------------------------------------------------- ============================================================================
DIRECTIVE DIRECTIVE
#! #!
...@@ -30,7 +33,7 @@ DESCRIPTION ...@@ -30,7 +33,7 @@ DESCRIPTION
the script with the script with
#!/usr/local/bin/ulpc #!/usr/local/bin/ulpc
---------------------------------------------------------------------------- ============================================================================
DIRECTIVE DIRECTIVE
#define #define
...@@ -50,7 +53,7 @@ DESCRIPTION ...@@ -50,7 +53,7 @@ DESCRIPTION
'identifier(something1,something2d)' would be replaced with 'identifier(something1,something2d)' would be replaced with
the replacement string. And in the replacement string, arg1 and arg2 the replacement string. And in the replacement string, arg1 and arg2
will be replaced with something1 and something2. will be replaced with something1 and something2.
---------------------------------------------------------------------------- ============================================================================
DIRECTIVE DIRECTIVE
#undef #undef
...@@ -65,7 +68,7 @@ EXAMPLES ...@@ -65,7 +68,7 @@ EXAMPLES
#undef foo #undef foo
#define foo(bar) gazonk bar #define foo(bar) gazonk bar
#undef foo #undef foo
---------------------------------------------------------------------------- ============================================================================
DIRECTIVE DIRECTIVE
#if #if
#elif #elif
...@@ -111,7 +114,7 @@ EXAMPLES ...@@ -111,7 +114,7 @@ EXAMPLES
#if !efun(write_file) #if !efun(write_file)
inherit "simulate.lpc" inherit "simulate.lpc"
#endif #endif
---------------------------------------------------------------------------- ============================================================================
DIRECTIVE DIRECTIVE
#error #error
...@@ -123,7 +126,7 @@ EXAMPLES ...@@ -123,7 +126,7 @@ EXAMPLES
#if !efun(write_file) #if !efun(write_file)
#error Move object is missing #error Move object is missing
#endif #endif
---------------------------------------------------------------------------- ============================================================================
DIRECTIVE DIRECTIVE
#include #include
...@@ -134,7 +137,7 @@ DESCRIPTION ...@@ -134,7 +137,7 @@ DESCRIPTION
EXAMPLES EXAMPLES
#include "foo.h" #include "foo.h"
---------------------------------------------------------------------------- ============================================================================
DIRECTIVE DIRECTIVE
#line #line
...@@ -149,7 +152,7 @@ DESCRIPTION ...@@ -149,7 +152,7 @@ DESCRIPTION
EXAMPLES EXAMPLES
#line 4 "foo.cf" /* The next line was generated from 4 in foo.cf */ #line 4 "foo.cf" /* The next line was generated from 4 in foo.cf */
---------------------------------------------------------------------------- ============================================================================
DIRECTIVE DIRECTIVE
#pragma #pragma
...@@ -157,4 +160,4 @@ DESCRIPTION ...@@ -157,4 +160,4 @@ DESCRIPTION
This is a generic directive for flags to the compiler. Currently, the This is a generic directive for flags to the compiler. Currently, the
only flag available is 'all_inline' which is the same as adding the only flag available is 'all_inline' which is the same as adding the
modifier 'inline' to all functions that follows. modifier 'inline' to all functions that follows.
---------------------------------------------------------------------------- ============================================================================
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment