2022-07-17 16:15:09 +00:00
|
|
|
print([[
|
|
|
|
#include "param.h"
|
|
|
|
#include "lookup.h"
|
|
|
|
#include "varinfo.h"
|
|
|
|
#include "instruct.h"
|
|
|
|
#include "set.h"
|
|
|
|
#include "expr.h"
|
|
|
|
#include "iocc.h"
|
|
|
|
#include "y.tab.h"
|
|
|
|
|
|
|
|
void enterkeyw(void) {
|
|
|
|
]])
|
|
|
|
|
|
|
|
for line in io.stdin:lines() do
|
|
|
|
if not line:find("^#") then
|
2022-08-01 20:44:31 +00:00
|
|
|
local _, _, w1, w2 = line:find("^([^ \t]+)%s+([^ \t]+)$")
|
2022-07-17 16:15:09 +00:00
|
|
|
print(string.format([[
|
|
|
|
lookup("%s", symkeyw, newsymbol)->sy_value.syv_keywno = %s;
|
|
|
|
]], w1, w2))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
print([[
|
|
|
|
}
|
|
|
|
]])
|
|
|
|
|