Read a configuration file: Difference between revisions
→{{header|Forth}}
Line 1,928:
: # ( -- ) 1 PARSE 2DROP ; \ parse line and throw away
: = ( addr --) 1 PARSE trim ROT PLACE ; \ string assignment operator
FORTH DEFINITIONS
Line 1,971:
Rhu Barber
Harry Barber ok</PRE>
Note that parsing a config file using the forth text interpreter this way is probably only safe if you are the only one that edits the config file, as it can execute any forth word.
=={{header|Fortran}}==
|