From c31277560bf36591d373b598fb9d7d155c59b579 Mon Sep 17 00:00:00 2001 From: Date: Tue, 30 Oct 2018 22:30:02 -0400 Subject: [PATCH] Updated keywords and standard library. --- keywords.md | 5 +++-- keywords/keyword_continue.md | 26 ++++++++++++++++++++++++++ standard_library/io_library.md | 2 +- standard_library/math_library.md | 2 +- standard_library/string_library.md | 2 +- 5 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 keywords/keyword_continue.md diff --git a/keywords.md b/keywords.md index 8086e5c..749a137 100644 --- a/keywords.md +++ b/keywords.md @@ -24,7 +24,7 @@ |end |end a function, while loop, try/catch block, or if statement |[end details](keywords/keyword_end.md) | |catch |catch an exception after a try block |[catch details](keywords/keyword_catch.md) | |try |try executing potentially unsafe code |[try details](keywords/keyword_try.md) | -|break |seek to next end keyword |[break details](keywords/keyword_break.md) | +|break |break enclosing loop |[break details](keywords/keyword_break.md) | |const |const value declaration |[const details](keywords/keyword_const.md) | |else |if statement alternative branch declaration |[else details](keywords/keyword_else.md) | |system |execute system command |[system details](keywords/keyword_system.md) | @@ -32,4 +32,5 @@ |instanceof |determine the type of a variable |[instanceof details](keywords/keyword_instanceof.md)| |exit |terminate script or exit program immediately |[exit details](keywords/keyword_exit.md) | |new |create a new struct |[new details](keywords/keyword_new.md) | -|struct |define the template for a struct |[struct details](keywords/keyword_struct.md) | \ No newline at end of file +|struct |define the template for a struct |[struct details](keywords/keyword_struct.md) | +|continue |restart enclosing loop |[continue details](keywords/keyword_continue.md) | \ No newline at end of file diff --git a/keywords/keyword_continue.md b/keywords/keyword_continue.md new file mode 100644 index 0000000..08854e1 --- /dev/null +++ b/keywords/keyword_continue.md @@ -0,0 +1,26 @@ +[Home](https://puckowski.github.io/concert/) [Keywords](https://puckowski.github.io/concert/keywords.html) + +# Keyword continue + +## Description + +Jump to start of enclosing loop. + +## Example + +```cpp +call seed_random; + +while 1 == 1; + int rand; + call get_random -> rand; + rand = rand % 100; + + if rand < 50; + # Jump to while 1 == 1; + continue; + else; + break; + end; +end; +``` diff --git a/standard_library/io_library.md b/standard_library/io_library.md index eb21380..4ecbb04 100644 --- a/standard_library/io_library.md +++ b/standard_library/io_library.md @@ -1,4 +1,4 @@ -[Home](https://puckowski.github.io/concert/) [Standard library](https://puckowski.github.io/concert/standard_library.html) +[Home](https://puckowski.github.io/concert/) [Standard library](https://puckowski.github.io/concert/standard_library/standard_library.html) # Input output library diff --git a/standard_library/math_library.md b/standard_library/math_library.md index 39c4b57..e3f0d82 100644 --- a/standard_library/math_library.md +++ b/standard_library/math_library.md @@ -1,4 +1,4 @@ -[Home](https://puckowski.github.io/concert/) [Standard library](https://puckowski.github.io/concert/standard_library.html) +[Home](https://puckowski.github.io/concert/) [Standard library](https://puckowski.github.io/concert/standard_library/standard_library.html) # Math library diff --git a/standard_library/string_library.md b/standard_library/string_library.md index 701a4d6..6837b91 100644 --- a/standard_library/string_library.md +++ b/standard_library/string_library.md @@ -1,4 +1,4 @@ -[Home](https://puckowski.github.io/concert/) [Standard library](https://puckowski.github.io/concert/standard_library.html) +[Home](https://puckowski.github.io/concert/) [Standard library](https://puckowski.github.io/concert/standard_library/standard_library.html) # String library