Clause

From BR Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Each program line contains one or more clauses. You can parse a line by it's clauses by use of the list command. For example the following program.


00010 def fn_one_line=25
00020 for count=1 to 100 : print 'Count=';count : next count
00030 if exists("file") then print 'the file is there.' else print 'no file.'

the command list clause would return:

00010 ``def `fn_one_line=25`
00020 `for count=1 to 100 : `print 'Count=';count : `next count
00030 `if exists("file") then `print 'the file is there.' else `print 'no file.'

The newly added ` markers show where each clause begins.

Each clause may be a statement or a command or something else.

See also: Go