asomiya 0.2.0

Error codes

Every error has a stable code. The messages below come straight from the interpreter, filled in with example values. Exit codes: 0 success, 1 the program had an error, 2 wrong command-line usage or unreadable file.

Lexical errors (L)

L001

Unexpected character "@" (U+0040)

অচিনাকি আখৰ "@" (U+0040) ইয়াত ব্যৱহাৰ কৰিব নোৱাৰি

Example ধৰা ক = @

L002

Unterminated string — a closing " is required on the same line

পাঠটো বন্ধ কৰা হোৱা নাই — একে শাৰীতে শেষত " চিহ্ন লাগিব

Example ধৰা ক = "অসম

L003

Unterminated block comment — a closing */ is required

মন্তব্যটো বন্ধ কৰা হোৱা নাই — শেষত */ লাগিব

Example /* মন্তব্য …

L004

Invalid escape sequence "\q". Allowed: \n \t \r \" \\

অবৈধ এস্কেপ চিহ্ন "\q"। ব্যৱহাৰ কৰিব পাৰি: \n \t \r \" \\

Example "\q"

L005

A number cannot mix Assamese and ASCII digits: ১2

একেটা সংখ্যাত অসমীয়া আৰু ইংৰাজী অংক মিহলাই লিখিব নোৱাৰি: ১2

Example ধৰা ক = ১2

L006

Malformed number: ১২ক

অবৈধ সংখ্যা: ১২ক

Example ধৰা ক = ১২ক

L007

Combining mark "া" (U+09BE) has no base letter before it

"া" (U+09BE) চিহ্নটোৰ আগত কোনো আখৰ নাই

Example ধৰা ক = া

L008

Invisible control character U+202E is not allowed in text or comments (it can make code look different from what runs)

অদৃশ্য নিয়ন্ত্ৰণ আখৰ U+202E পাঠ বা মন্তব্যত ব্যৱহাৰ কৰিব নোৱাৰি (ই ক'ডটো যিদৰে দেখা যায় তাতকৈ বেলেগ দেখুৱাব পাৰে)

Example কোৱা("abc<U+202E>cba")

Syntax errors (P)

P001

Expected ")" but found "২"

ইয়াত ")" আশা কৰা হৈছিল, কিন্তু পোৱা গ'ল "২"

Example কোৱা(১ ২)

P002

Expected an expression but found end of input

ইয়াত এটা মান আশা কৰা হৈছিল, কিন্তু পোৱা গ'ল ফাইলৰ শেষ

Example ধৰা ক =

P003

Invalid assignment target — only a variable or a list element may appear left of "="

"="ৰ বাওঁফালে কেৱল চলকৰ নাম বা তালিকাৰ উপাদান থাকিব পাৰে

Example ১ = ২

P004

"ৰখা" (break) can only be used inside a loop

"ৰখা" কেৱল "যেতিয়ালৈকে" লুপৰ ভিতৰত ব্যৱহাৰ কৰিব পাৰি

Example ৰখা (outside a loop)

P005

"ঘূৰাইদিয়া" (return) can only be used inside a function

"ঘূৰাইদিয়া" কেৱল ফাংচনৰ ভিতৰত ব্যৱহাৰ কৰিব পাৰি

Example ঘূৰাইদিয়া ১ (outside a function)

P006

Duplicate parameter "ক"

প্ৰাচল "ক" এবাৰতকৈ বেছি লিখা হৈছে

Example ফাংচন ফ(ক, ক) { }

P007

Expected a line break or ";" after the statement, but found "খ"

বাক্যৰ পিছত নতুন শাৰী বা ";" লাগিব, কিন্তু পোৱা গ'ল "খ"

Example ক খ

P008

Expected a variable name but found "="

ইয়াত চলকৰ নাম আশা কৰা হৈছিল, কিন্তু পোৱা গ'ল "="

Example ধৰা = ৫

P009

"যদি" is a reserved keyword and cannot be used as a name

"যদি" এটা সংৰক্ষিত শব্দ; ইয়াক নাম হিচাপে ব্যৱহাৰ কৰিব নোৱাৰি

Example ধৰা যদি = ৫

P010

Program is nested too deeply: more than 256 levels of brackets or blocks

প্ৰগ্ৰামটোৰ গঠন অতি গভীৰ: ২৫৬তকৈ বেছি স্তৰৰ বন্ধনী বা ব্লক

Example (((((… ৩০০ levels …)))))

P011

"আগবাঢ়া" (continue) can only be used inside a loop

"আগবাঢ়া" কেৱল "যেতিয়ালৈকে" লুপৰ ভিতৰত ব্যৱহাৰ কৰিব পাৰি

Example আগবাঢ়া (outside a loop)

Runtime errors (R)

R001

Undefined variable "খ" (declare it first with "ধৰা")

"খ" নামৰ কোনো চলক ঘোষণা কৰা হোৱা নাই (প্ৰথমে "ধৰা খ = …" লিখক)

Example কোৱা(খ) (খ never declared)

R002

"ক" is already declared in this scope

"ক" এই পৰিসৰত ইতিমধ্যে ঘোষণা কৰা হৈছে

Example ধৰা ক = ১; ধৰা ক = ২

R003

Cannot apply "-" to text and number

"-" ব্যৱহাৰ কৰিব নোৱাৰি: বাওঁফালে পাঠ, সোঁফালে সংখ্যা

Example "ক" - ১

R004

Division by zero

শূন্যৰে হৰণ কৰিব নোৱাৰি

Example ১ / ০

R005

Cannot call a value of type number

সংখ্যা এটা ফাংচন নহয়, গতিকে ইয়াক মাতিব নোৱাৰি

Example ধৰা ক = ৫; ক()

R006

"যোগ" expects 2 argument(s) but got 1

"যোগ" ফাংচনে ২টা মান বিচাৰে, কিন্তু ১টা দিয়া হৈছে

Example যোগ(১)

R007

A condition must be a boolean (সঁচা/মিছা) but got number

চৰ্তটো সঁচা বা মিছা হ'ব লাগিব, কিন্তু ইয়াৰ প্ৰকাৰ সংখ্যা

Example যদি (১) { }

R008

Execution step limit of 10000000 exceeded — possible infinite loop

১০০০০০০০টা পদক্ষেপৰ সীমা পাৰ হ'ল — হয়তো লুপটো কেতিয়াও শেষ নহয়

Example যেতিয়ালৈকে (সঁচা) { }

R009

Maximum call depth of 500 exceeded — possible infinite recursion

ফাংচন মতাৰ গভীৰতা ৫০০ পাৰ হ'ল — হয়তো ৰিকাৰ্চন কেতিয়াও শেষ নহয়

Example ফাংচন ফ() { ঘূৰাইদিয়া ফ() }

R010

Index 3 is out of range for length 3

সূচী ৩ সীমাৰ বাহিৰত; দৈৰ্ঘ্য ৩

Example [১, ২, ৩][৩]

R011

An index must be a whole number but got ০.৫

সূচী এটা অখণ্ড সংখ্যা হ'ব লাগিব, কিন্তু পোৱা গ'ল ০.৫

Example ল[০.৫]

R012

Cannot index into a value of type number

সংখ্যাত সূচী ব্যৱহাৰ কৰিব নোৱাৰি

Example ৫[০]

R013

Cannot apply unary "-" to text

"-" পাঠৰ ওপৰত প্ৰয়োগ কৰিব নোৱাৰি

Example -"ক"

R014

Argument 1 of "দৈৰ্ঘ্য" must be text or list but got number

"দৈৰ্ঘ্য" ফাংচনৰ ১ নম্বৰ মানটো পাঠ বা তালিকা হ'ব লাগিব, কিন্তু পোৱা গ'ল সংখ্যা

Example দৈৰ্ঘ্য(৫)

R015

Input is not available here

ইয়াত ইনপুট পঢ়াৰ সুবিধা উপলব্ধ নহয়

Example সোধা() (in the REPL)

R016

Text values are immutable; build a new text instead

পাঠৰ আখৰ সলনি কৰিব নোৱাৰি; তাৰ সলনি নতুন পাঠ এটা বনাওক

Example ধৰা শ = "ক"; শ[০] = "খ"

R017

Operands of "আৰু" must be boolean but got number

"আৰু"ৰ দুয়োফালে সঁচা বা মিছা লাগিব, কিন্তু পোৱা গ'ল সংখ্যা

Example ১ আৰু সঁচা

R018

Nesting too deep: the interpreter ran out of stack space; reduce the recursion depth

প্ৰগ্ৰামটো অতি গভীৰলৈ সোমাই গ'ল আৰু ইন্টাৰপ্ৰেটাৰৰ ষ্টেক শেষ হ'ল; ৰিকাৰ্চনৰ গভীৰতা কমাওক

Example very deep recursion with a raised --max-depth

R019

List is too long — the maximum length is 1000000

তালিকাখন অতি দীঘল হ'ল — সৰ্বোচ্চ দৈৰ্ঘ্য ১০০০০০০

Example ধৰা ল = [১]; যেতিয়ালৈকে (সঁচা) { ল = ল + ল }

R020

"দৈৰ্ঘ্য" is a built-in and cannot be reassigned (declare your own with "ধৰা")

"দৈৰ্ঘ্য" এটা অন্তৰ্নিৰ্মিত ফাংচন; ইয়াক সলনি কৰিব নোৱাৰি (নিজৰ বাবে "ধৰা দৈৰ্ঘ্য = …" লিখক)

Example দৈৰ্ঘ্য = ৫