mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 09:40:21 +00:00
* update .gitmodules * Update grammars.yml * Create hello.ring * Create Natural.ring * Create weblib.ring * vendor/grammars/language-ring * fix order in grammars.yml * remove two files from samples * delete hello.ring * Update languages.yml - add the R * Create hello.ring * Create natural.ring * Create weblib.ring * Create grammars.yml * Create .gitmodules * Create languages.yml * Create languages.yml * Create language-ring.txt * Update .gitmodules Prefer HTTPS links. * Update hello.ring Sample file from "real" applications (under permissive license) to train the Bayesian classifier. * Update languages.yml * Update weblib.ring Reduce the file size * Update .gitmodules * Update .gitmodules * Update .gitmodules * Update .gitmodules * Update submodule : language-ring * Update weblib.ring Sample : Using the web library. * Create weighthistory Add Sample * Rename weighthistory to weighthistory.ring * Update weblib.ring
45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
New App
|
|
{
|
|
I want window
|
|
The window title = "hello world"
|
|
}
|
|
|
|
Class App
|
|
|
|
func geti
|
|
if nIwantwindow = 0
|
|
nIwantwindow++
|
|
ok
|
|
|
|
func getwant
|
|
if nIwantwindow = 1
|
|
nIwantwindow++
|
|
ok
|
|
|
|
func getwindow
|
|
if nIwantwindow = 2
|
|
nIwantwindow= 0
|
|
see "Instruction : I want window" + nl
|
|
ok
|
|
if nWindowTitle = 0
|
|
nWindowTitle++
|
|
ok
|
|
|
|
func settitle cValue
|
|
if nWindowTitle = 1
|
|
nWindowTitle=0
|
|
see "Instruction : Window Title = " + cValue + nl
|
|
ok
|
|
|
|
private
|
|
|
|
# Attributes for the instruction I want window
|
|
i want window
|
|
nIwantwindow = 0
|
|
# Attributes for the instruction Window title
|
|
# Here we don't define the window attribute again
|
|
title
|
|
nWindowTitle = 0
|
|
# Keywords to ignore, just give them any value
|
|
the=0
|