Clause

From BR Wiki
Revision as of 20:18, 10 October 2013 by Laura (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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